| 67 | |
| 68 | |
| 69 | static inline void* stack_top(const Stack* stk) { |
| 70 | if (!stk || !stk->vec || stk->vec->size == 0) { |
| 71 | return NULL; |
| 72 | } |
| 73 | return (char*)stk->vec->items + (stk->vec->size - 1) * stk->vec->itemSize; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | static inline bool stack_push(Stack* stk, const void* item) { |
nothing calls this directly
no outgoing calls
no test coverage detected