------------------------------------------------------------------ */ Inlined hot ops */ ------------------------------------------------------------------ */ * A stack is LIFO at the back of the vector, so push / top / pop / empty / size * are tiny O(1) operations that dominate any real workload. They are defined * `static inline` here (the Vec
| 57 | * inline vector op. Pops adjust the vector's size directly. |
| 58 | */ |
| 59 | static inline size_t stack_size(const Stack* stk) { |
| 60 | return (stk && stk->vec) ? stk->vec->size : 0; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | static inline bool stack_empty(const Stack* stk) { |
nothing calls this directly
no outgoing calls
no test coverage detected