Commit b0059483 authored by Milo Yip's avatar Milo Yip

Error can only be assigned once

parent bb889b6a
...@@ -23,11 +23,10 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment