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

Function fxCheckModuleStuffInstance

xs/sources/xsModule.c:3457–3467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3455#if mxModuleStuff
3456
3457txSlot* fxCheckModuleStuffInstance(txMachine* the, txSlot* slot)
3458{
3459 if (slot->kind == XS_REFERENCE_KIND) {
3460 txSlot* instance = slot->value.reference;
3461 if (((slot = instance->next)) && (slot->flag & XS_INTERNAL_FLAG) && (slot->kind == XS_MODULE_STUFF_KIND)) {
3462 return instance;
3463 }
3464 }
3465 mxTypeError("this: not a ModuleStuff instance");
3466 return C_NULL;
3467}
3468
3469txSlot* fxImportModuleStuff(txMachine* the, txSlot* realm, txSlot* queue, txSlot* reference, txSlot* name, txBoolean now)
3470{

Callers 1

fxLoadModuleStuffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected