summaryrefslogtreecommitdiff
path: root/src/bytecode
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode')
-rw-r--r--src/bytecode/bytecode.h2
-rw-r--r--src/bytecode/dump.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/bytecode/bytecode.h b/src/bytecode/bytecode.h
index 6c320a1..64c68ac 100644
--- a/src/bytecode/bytecode.h
+++ b/src/bytecode/bytecode.h
@@ -167,7 +167,9 @@ static inline bool isInherit(uint32_t OPV)
return getFlags(OPV) & 0x2;
}
+#ifndef NDEBUG
void css_bytecode_dump(void *bytecode, uint32_t length, FILE *fp);
+#endif
#endif
diff --git a/src/bytecode/dump.c b/src/bytecode/dump.c
index 1299164..75733d1 100644
--- a/src/bytecode/dump.c
+++ b/src/bytecode/dump.c
@@ -11,6 +11,7 @@
#include "bytecode/opcodes.h"
#include "utils/fpmath.h"
+#ifndef NDEBUG
/**
* Opcode names, indexed by opcode
*/
@@ -1825,4 +1826,5 @@ void css_bytecode_dump(void *bytecode, uint32_t length, FILE *fp)
}
+#endif