summaryrefslogtreecommitdiff
path: root/src/bytecode
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-14 13:44:04 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-14 13:44:04 +0000
commitdbac4d510ed167efdd1f13ac37594a52f94e71aa (patch)
tree26a0aaa38c3472a4e9a41fb0d333e556edd15e29 /src/bytecode
parent69d3fa317a5c227f313ee76546dbc6b128faed68 (diff)
downloadlibcss-dbac4d510ed167efdd1f13ac37594a52f94e71aa.tar.gz
libcss-dbac4d510ed167efdd1f13ac37594a52f94e71aa.tar.bz2
Don't build the serialisation code in release mode
svn path=/trunk/libcss/; revision=6064
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