aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-11 23:52:06 +0000
committerDavid Robillard <d@drobilla.net>2011-12-11 23:52:06 +0000
commit3979c76b27aaa035b3f9bddc4956ab69c410fc25 (patch)
treed311cb4f8eb1077b1dc614ee9b69910ca4985068
parentea1936a594d7e4e656731223b76d355fc5431ef9 (diff)
downloadserd-3979c76b27aaa035b3f9bddc4956ab69c410fc25.tar.gz
serd-3979c76b27aaa035b3f9bddc4956ab69c410fc25.tar.bz2
serd-3979c76b27aaa035b3f9bddc4956ab69c410fc25.zip
Fix debug build without --stack-check.
git-svn-id: http://svn.drobilla.net/serd/trunk@245 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--src/reader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c
index a1ff0d1c..da70e6db 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -649,7 +649,9 @@ read_longString(SerdReader* reader, SerdNodeFlags* flags)
{
eat_string(reader, "\"\"\"", 3);
Ref ref = push_node(reader, SERD_LITERAL, "", 0);
+#ifdef SERD_STACK_CHECK
assert(stack_is_top_node(reader, ref));
+#endif
SerdStatus st;
while (!(st = read_lcharacter(reader, ref, flags))) {}
if (st < SERD_ERR_UNKNOWN) {