MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / expect_bool

Function expect_bool

tools/json-graph/src/jgflib.c:376–380  ·  view source on GitHub ↗

Checks whether token is a false or true literal. */

Source from the content-addressed store, hash-verified

374
375/** Checks whether token is a false or true literal. */
376static void expect_bool(jsmntok_t *tok)
377{
378 if (!(tok->type == JSMN_PRIMITIVE && strchr("ft", input[tok->start])))
379 error(tok, "boolean value false or true");
380}
381
382/** Checks whether token is a string or primitive. */
383static void expect_scalar(jsmntok_t *tok)

Callers 1

jgf_parseFunction · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected