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

Function expect

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

Checks whether token is of a certain type. */

Source from the content-addressed store, hash-verified

358
359/** Checks whether token is of a certain type. */
360static void expect(jsmntok_t *tok, jsmntype_t t)
361{
362 if (tok->type != t)
363 error(tok, type(t));
364}
365
366/** Checks whether token is string or number literal. */
367static void expect_nodeid(jsmntok_t *tok)

Callers 3

jgf_parseFunction · 0.85
jsonml_attributesFunction · 0.85
jsonml_elementFunction · 0.85

Calls 2

errorFunction · 0.85
typeFunction · 0.85

Tested by

no test coverage detected