MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stack_pop

Function stack_pop

codegraph-kernel/grammars/kotlin/scanner.c:115–119  ·  view source on GitHub ↗

Returns false instead of aborting when there is nothing to pop, so that no input can terminate the host process through this path.

Source from the content-addressed store, hash-verified

113// Returns false instead of aborting when there is nothing to pop, so that no
114// input can terminate the host process through this path.
115static inline bool stack_pop(Stack *stack) {
116 if (stack->size < 2) return false;
117 stack->size -= 2;
118 return true;
119}
120
121static inline void skip(TSLexer *lexer) { lexer->advance(lexer, true); }
122

Callers 1

scan_string_contentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected