예제 #1
0
int main()
{
    int i = 0;
    /*
    int x = 4;
    int a = 4;
    int b = 4;
    int c = 4;
    int d = 4;
    int e = 0;
    */
    int* stackSize = &i;
    void* memoryPtr;

    // printf("Printing local variable i = %d \n", i);
    memoryPtr = getStackInfo(stackSize);
    printf("Stack frame starts at 0x%x \n", memoryPtr);
    printf("Stack frame size is %d bytes \n", *stackSize);
    getchar();

    return 0;
}
예제 #2
0
파일: utils.cpp 프로젝트: gamelook/core
	void getStackInfo(String& stackInfo)
	{
		OFFSET_ARRAY stacks = getStackInfo();
		getStackInfo(stackInfo, stacks);

	}