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

Function fxRemember

xs/sources/xsAPI.c:1835–1853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1833}
1834
1835void fxRemember(txMachine* the, txSlot* theSlot)
1836{
1837 txSlot* aHeap;
1838 txSlot* aLimit;
1839 if ((the->stack <= theSlot) && (theSlot < the->stackTop)) {
1840 return;
1841 }
1842 aHeap = the->firstHeap;
1843 while (aHeap) {
1844 aLimit = aHeap->value.reference;
1845 if ((aHeap < theSlot) && (theSlot < aLimit)) {
1846 return;
1847 }
1848 aHeap = aHeap->next;
1849 }
1850 fxForget(the, theSlot);
1851 theSlot->next = the->cRoot;
1852 the->cRoot = theSlot;
1853}
1854
1855void fxForget(txMachine* the, txSlot* theSlot)
1856{

Callers 2

fx_setTimerFunction · 0.85
fxWaitSharedChunkFunction · 0.85

Calls 1

fxForgetFunction · 0.85

Tested by

no test coverage detected