Error can only be assigned once
This commit is contained in:
parent
bb889b6ab6
commit
b0059483c8
@ -23,11 +23,10 @@
|
|||||||
#ifndef RAPIDJSON_PARSE_ERROR_NORETURN
|
#ifndef RAPIDJSON_PARSE_ERROR_NORETURN
|
||||||
#define RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode, offset) \
|
#define RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode, offset) \
|
||||||
RAPIDJSON_MULTILINEMACRO_BEGIN \
|
RAPIDJSON_MULTILINEMACRO_BEGIN \
|
||||||
if (!HasParseError()) {\
|
RAPIDJSON_ASSERT(!HasParseError()); /* Error can only be assigned once */ \
|
||||||
parseErrorCode_ = parseErrorCode; \
|
parseErrorCode_ = parseErrorCode; \
|
||||||
errorOffset_ = offset; \
|
errorOffset_ = offset; \
|
||||||
}\
|
RAPIDJSON_MULTILINEMACRO_END
|
||||||
RAPIDJSON_MULTILINEMACRO_END
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RAPIDJSON_PARSE_ERROR
|
#ifndef RAPIDJSON_PARSE_ERROR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user