1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

parser: only check flags in debug mode

This commit is contained in:
tg(x) 2011-04-30 16:45:17 +02:00
parent 42af715bc0
commit 23096ebf4b

View file

@ -230,10 +230,11 @@ inline psycParseRC psyc_parseModifier(psycParseState* state, char* oper, psycStr
*/ */
psycParseRC psyc_parse(psycParseState* state, char* oper, psycString* name, psycString* value) psycParseRC psyc_parse(psycParseState* state, char* oper, psycString* name, psycString* value)
{ {
if (state->flags & PSYC_PARSE_HEADER_ONLY && #ifdef DEBUG
state->flags & PSYC_PARSE_BEGIN_AT_CONTENT) if (state->flags & PSYC_PARSE_HEADER_ONLY && state->flags & PSYC_PARSE_BEGIN_AT_CONTENT)
return PSYC_PARSE_ERROR_INVALID_FLAGS; PP(("Invalid flag combination"))
#endif
psycParseRC ret; // a return value psycParseRC ret; // a return value
size_t pos = state->cursor; // a cursor position size_t pos = state->cursor; // a cursor position