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

Function Stack_popToMark_

libs/basekit/source/Stack.c:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void Stack_popToMark_(Stack *self, intptr_t mark) {
107 while (self->lastMark && self->lastMark != mark) {
108 Stack_popMark(self);
109 }
110
111 if (self->lastMark == 0) {
112 printf("Stack error: unable to find mark %p in %p\n", (void *)mark,
113 (void *)self);
114 exit(1);
115 }
116
117 Stack_popMark(self);
118}
119
120List *Stack_asList(const Stack *self) // slow
121{

Callers

nothing calls this directly

Calls 1

Stack_popMarkFunction · 0.85

Tested by

no test coverage detected