MCPcopy Create free account
hub / github.com/JochenKalmbach/StackWalker / _tmain

Function _tmain

Main/StackWalker/main.cpp:235–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233#endif // EXCEPTION_FILTER_TEST
234
235int _tmain(int argc, _TCHAR* argv[])
236{
237 printf("\n\n\nShow an object:\n\n\n");
238 GlobalIntTest();
239
240 printf("\n\n\nShow a function pointer:\n\n\n");
241 GlobalFunctionPointerTest();
242
243 printf("\n\n\nShow a simple callstack of the current thread:\n\n\n");
244 StackWalkTest();
245
246#ifdef EXCEPTION_FILTER_TEST
247 printf("\n\n\nShow a the callstack from inside an exception-handler:\n\n\n");
248 TestExceptionWalking();
249#endif
250
251#ifdef UNHANDLED_EXCEPTION_TEST
252 printf("\n\n\nCatch unhandled exceptions and show the callstack:\n\n\n");
253 // This will only work, if the program is *not* started under a debugger
254 // If the program is running under a debugger, the debugger will catch this exception ;)
255 InitUnhandledExceptionFilter();
256 //f(0); // endless recursion
257 char* szTemp = (char*)1;
258 strcpy_s(szTemp, 1000, "A");
259#endif
260
261 return 0;
262}

Callers

nothing calls this directly

Calls 5

GlobalIntTestFunction · 0.85
StackWalkTestFunction · 0.85
TestExceptionWalkingFunction · 0.85

Tested by

no test coverage detected