MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / raxStackPeek

Function raxStackPeek

src/rax.c:139–142  ·  view source on GitHub ↗

Return the stack item at the top of the stack without actually consuming * it. */

Source from the content-addressed store, hash-verified

137/* Return the stack item at the top of the stack without actually consuming
138 * it. */
139static inline void *raxStackPeek(raxStack *ts) {
140 if (ts->items == 0) return NULL;
141 return ts->stack[ts->items-1];
142}
143
144/* Free the stack in case we used heap allocation. */
145static inline void raxStackFree(raxStack *ts) {

Callers 1

raxRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected