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

Function error

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

Source from the content-addressed store, hash-verified

348}
349
350static void error(jsmntok_t *tok, const char *msg)
351{
352 fprintf(stderr, "(E): [pos:%u] Expect %s; got %s (",
353 tok->start, msg, type(tok->type));
354 show_16(stderr, tok);
355 fputs(").\n", stderr);
356 exit(6);
357}
358
359/** Checks whether token is of a certain type. */
360static void expect(jsmntok_t *tok, jsmntype_t t)

Callers 4

expectFunction · 0.85
expect_nodeidFunction · 0.85
expect_boolFunction · 0.85
expect_scalarFunction · 0.85

Calls 2

typeFunction · 0.85
show_16Function · 0.85

Tested by

no test coverage detected