MCPcopy Create free account
hub / github.com/IoLanguage/io / Stack_popMark

Function Stack_popMark

libs/basekit/source/Stack_inline.h:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93IOINLINE void Stack_popMark(Stack *self) {
94#ifdef STACK_POP_CALLBACK
95 if (self->popCallback)
96 Stack_doUntilMark_(self, self->popCallback);
97#endif
98
99 self->top = self->items + self->lastMark - 1;
100
101 if (self->lastMark) {
102 self->lastMark = (intptr_t)(self->items[self->lastMark]);
103 }
104}
105
106IOINLINE int Stack_popMarkPoint_(Stack *self, intptr_t mark) {
107 while (self->lastMark && self->lastMark != mark) {

Callers 4

Stack_popMarkPoint_Function · 0.85
Stack_clearTopFunction · 0.85
Stack_popToMark_Function · 0.85
IoState_popRetainPoolFunction · 0.85

Calls 1

Stack_doUntilMark_Function · 0.85

Tested by

no test coverage detected