From dbac4d510ed167efdd1f13ac37594a52f94e71aa Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 14 Jan 2009 13:44:04 +0000 Subject: Don't build the serialisation code in release mode svn path=/trunk/libcss/; revision=6064 --- src/bytecode/bytecode.h | 2 ++ src/bytecode/dump.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/bytecode') 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 -- cgit v1.2.3