|
|
|
@ -1310,8 +1310,8 @@ upb_json_parser *upb_json_parser_create(upb_env *env, upb_sink *output) { |
|
|
|
|
upb_sink_reset(&p->top->sink, output->handlers, output->closure); |
|
|
|
|
p->top->m = upb_handlers_msgdef(output->handlers); |
|
|
|
|
|
|
|
|
|
/* If this fails, uncomment and increase the value in parser.h. |
|
|
|
|
* fprintf(stderr, "%zd\n", upb_env_bytesallocated(env) - size_before); */ |
|
|
|
|
/* If this fails, uncomment and increase the value in parser.h. */ |
|
|
|
|
/* fprintf(stderr, "%zd\n", upb_env_bytesallocated(env) - size_before); */ |
|
|
|
|
assert(upb_env_bytesallocated(env) - size_before <= UPB_JSON_PARSER_SIZE); |
|
|
|
|
return p; |
|
|
|
|
} |
|
|
|
|