Aegis  4.25.D505
Functions
common/stack.h File Reference

Go to the source code of this file.

Functions

bool variable_is_on_stack (void *p)

Function Documentation

bool variable_is_on_stack ( void *  p)

The variable_is_on_stack function is used to determine whether a variable is on the stack. This is usually used for debugging.

There are three broard categories of variables we have to worry about: stack, static and heap.

It is possible this function will return true for static variables, depending on your compiler and linker.