MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxCheckEvent

Function fxCheckEvent

xs/tools/xst262.c:431–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void fxCheckEvent(yaml_event_t* event, yaml_event_type_t type, char* value)
432{
433 if (event->type != type) {
434 fprintf(stderr, "### invalid yaml type\n");
435 c_exit(1);
436 }
437 if (value) {
438 if (c_strcmp((char*)event->data.scalar.value, value) ){
439 fprintf(stderr, "### invalid yaml: %s instead of %s\n", (char*)event->data.scalar.value, value);
440 c_exit(1);
441 }
442 }
443}
444
445void fxCompareResults(txResult* input, txResult* output)
446{

Callers 2

fxReadConfigurationFunction · 0.85
fxReadResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected