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

Function fxToggle

xs/sources/xsDebug.c:2738–2757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2736}
2737
2738void fxToggle(txMachine* the, txSlot* slot)
2739{
2740 txSlot** instanceInspectorAddress = &(mxInstanceInspectors.value.list.first);
2741 txSlot* instanceInspector;
2742 while ((instanceInspector = *instanceInspectorAddress)) {
2743 if (instanceInspector->value.instanceInspector.slot == slot) {
2744 *instanceInspectorAddress = instanceInspector->next;
2745 return;
2746 }
2747 if (instanceInspector->value.instanceInspector.slot > slot)
2748 break;
2749 instanceInspectorAddress = &(instanceInspector->next);
2750 }
2751 instanceInspector = fxNewSlot(the);
2752 instanceInspector->next = *instanceInspectorAddress;
2753 instanceInspector->kind = XS_INSTANCE_INSPECTOR_KIND;
2754 instanceInspector->value.instanceInspector.slot = slot;
2755 instanceInspector->value.instanceInspector.link = C_NULL;
2756 *instanceInspectorAddress = instanceInspector;
2757}
2758
2759#endif
2760

Callers 3

fxDebugEvalFunction · 0.85
fxDebugPushTagFunction · 0.85
fxLoginFunction · 0.85

Calls 1

fxNewSlotFunction · 0.85

Tested by

no test coverage detected