| 92 | |
| 93 | |
| 94 | static inline bool stack_pop_value(Stack* stk, void* out_buf) { |
| 95 | if (!stk || !stk->vec || stk->vec->size == 0) { |
| 96 | return false; |
| 97 | } |
| 98 | stk->vec->size--; |
| 99 | if (out_buf) { |
| 100 | memcpy(out_buf, |
| 101 | (char*)stk->vec->items + stk->vec->size * stk->vec->itemSize, |
| 102 | stk->vec->itemSize); |
| 103 | } |
| 104 | return true; |
| 105 | } |
| 106 | |
| 107 | |
| 108 | static inline void* stack_pop(Stack* stk) { |
nothing calls this directly
no outgoing calls
no test coverage detected