utils/stack.h file

Contents

Stack implementation.

Classes

struct Stack
Stack implementation.

Typedefs

using Stack = struct Stack
Stack implementation.

Functions

auto stack_new(int length) -> Stack*
Creates a new stack of the given size.
auto stack_pop_last(Stack* s) -> void*
Pops the last element and moves everything back.