Skip to content

Commit

Permalink
fixup! decoder: Use faster ondemand parser for validating documents
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubOnderka committed Jan 19, 2025
1 parent 5e847b3 commit 14597e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simdjson_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern "C" {

#define SIMDJSON_PHP_TRY(EXPR) { auto _err = (EXPR); if (UNEXPECTED(_err)) { return _err; } }
#define SIMDJSON_PHP_CHECK_ERROR(EXPR) { auto _err = (EXPR).error(); if (UNEXPECTED(_err)) { return _err; } }
#define SIMDJSON_PHP_VALUE(EXPR) ({ auto _err = EXPR.error(); if (UNEXPECTED(_err)) { return _err; } EXPR.value_unsafe(); })
#define SIMDJSON_PHP_VALUE(EXPR) ({ auto _res = EXPR; auto _err = _res.error(); if (UNEXPECTED(_err)) { return _err; } _res.value_unsafe(); })

#define SIMDJSON_DEPTH_CHECK_THRESHOLD 100000

Expand Down

0 comments on commit 14597e4

Please # to comment.