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

Function stack_push

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

Source from the content-addressed store, hash-verified

46typedef Array(Delimiter) Stack;
47
48static inline void stack_push(Stack *stack, char chr, bool triple) {
49 if (stack->size >= TREE_SITTER_SERIALIZATION_BUFFER_SIZE) abort();
50 array_push(stack, (Delimiter)(triple ? (chr + 1) : chr));
51}
52
53static inline Delimiter stack_pop(Stack *stack) {
54 if (stack->size == 0) abort();

Callers 1

scan_string_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected