Go to the source code of this file.
Functions | |
bool | variable_is_on_stack (void *p) |
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.