14typedef struct _downwards_stack_t
26#define stack_push_val(stack, val) \
29 typeof(val) _val = (val); \
30 stack_push(stack, &_val, sizeof(_val)); \
35#define stack_pop_val(stack, val) \
39 stack_pop(stack, sizeof(_val), &_val); \
MOSAPI void stack_deinit(downwards_stack_t *stack)
MOSAPI void stack_init(downwards_stack_t *stack, void *mem_region_bottom, size_t size)
MOSAPI void * stack_grow(downwards_stack_t *stack, size_t size)
MOSAPI void stack_pop(downwards_stack_t *stack, size_t size, void *data)
MOSAPI void * stack_push(downwards_stack_t *stack, const void *data, size_t size)