Include
stddef.h |
Constants
AO_STACK_ALIGN
#define AO_STACK_ALIGN (8)
The stack pointer alignment, in bytes.
AO_STACK_FILL
#define AO_STACK_FILL (0xDEADBEEF)
The stack fill pattern.
Functions
ao_stack_fill
void ao_stack_fill(void * beginning, size_t size);
Fills a stack with a pattern, which allows for measuring the high water mark of the stack, later on.
ao_stack_get_high_water_mark
size_t ao_stack_get_high_water_mark(void const * beginning, size_t size);
Measures the high water mark of a stack.