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

Function Stack_pop

libs/basekit/source/Stack_inline.h:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79IOINLINE void *Stack_pop(Stack *self) {
80 void *top = *(self->top);
81
82 if (self->items != self->top) {
83#ifdef STACK_POP_CALLBACK
84 if (self->popCallback)
85 self->popCallback(*(self->top));
86#endif
87 self->top--;
88 }
89
90 return top;
91}
92
93IOINLINE void Stack_popMark(Stack *self) {
94#ifdef STACK_POP_CALLBACK

Callers 3

IoLexer_popPosFunction · 0.85
IoLexer_popPosBackFunction · 0.85
IoState_evalLoop_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected