X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoardTest%2FStackwalker.h;h=be0e4d85ab1b6fdc77704752f8ebb2bc02c08e38;hb=refs%2Fchanges%2F38%2F238%2F2;hp=c48bb47e807d823aa91ed563de86fa17fc7be95f;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoardTest/Stackwalker.h b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoardTest/Stackwalker.h index c48bb47e8..be0e4d85a 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoardTest/Stackwalker.h +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoardTest/Stackwalker.h @@ -1,57 +1,57 @@ -/*//////////////////////////////////////////////////////////////////////////// - * Project: - * Memory_and_Exception_Trace - * - * /////////////////////////////////////////////////////////////////////////// - * File: - * Stackwalker.h - * - * Remarks: - * - * - * Note: - * - * - * Author: - * Jochen Kalmbach - * - *//////////////////////////////////////////////////////////////////////////// - -#ifndef __STACKWALKER_H__ -#define __STACKWALKER_H__ - -// Only valid in the following environment: Intel platform, MS VC++ 5/6/7/7.1/8 -#ifndef _X86_ -#error Only INTEL envirnoments are supported! -#endif - -// Only MS VC++ 5 to 7 -//#if (_MSC_VER < 1100) || (_MSC_VER > 1400) -//#error Only MS VC++ 5/6/7/7.1/8 supported. Check if the '_CrtMemBlockHeader' has not changed with this compiler! -//#endif - -typedef enum eAllocCheckOutput -{ - ACOutput_Simple, - ACOutput_Advanced, - ACOutput_XML -}; - -// Make extern "C", so it will also work with normal C-Programs -#ifdef __cplusplus -extern "C" { -#endif -extern int InitAllocCheckWN(eAllocCheckOutput eOutput, LPCTSTR pszFilename, ULONG ulShowStackAtAlloc = 0); -extern int InitAllocCheck(eAllocCheckOutput eOutput = ACOutput_Simple, BOOL bSetUnhandledExeptionFilter = TRUE, ULONG ulShowStackAtAlloc = 0); // will create the filename by itself - -extern ULONG DeInitAllocCheck(); - -extern DWORD StackwalkFilter( EXCEPTION_POINTERS *ep, DWORD status, LPCTSTR pszLogFile); - -extern void OnlyInstallUnhandeldExceptionFilter(eAllocCheckOutput eOutput = ACOutput_Simple); - -#ifdef __cplusplus -} -#endif - -#endif // __STACKWALKER_H__ +/*//////////////////////////////////////////////////////////////////////////// + * Project: + * Memory_and_Exception_Trace + * + * /////////////////////////////////////////////////////////////////////////// + * File: + * Stackwalker.h + * + * Remarks: + * + * + * Note: + * + * + * Author: + * Jochen Kalmbach + * + *//////////////////////////////////////////////////////////////////////////// + +#ifndef __STACKWALKER_H__ +#define __STACKWALKER_H__ + +// Only valid in the following environment: Intel platform, MS VC++ 5/6/7/7.1/8 +#ifndef _X86_ +#error Only INTEL envirnoments are supported! +#endif + +// Only MS VC++ 5 to 7 +//#if (_MSC_VER < 1100) || (_MSC_VER > 1400) +//#error Only MS VC++ 5/6/7/7.1/8 supported. Check if the '_CrtMemBlockHeader' has not changed with this compiler! +//#endif + +typedef enum eAllocCheckOutput +{ + ACOutput_Simple, + ACOutput_Advanced, + ACOutput_XML +}; + +// Make extern "C", so it will also work with normal C-Programs +#ifdef __cplusplus +extern "C" { +#endif +extern int InitAllocCheckWN(eAllocCheckOutput eOutput, LPCTSTR pszFilename, ULONG ulShowStackAtAlloc = 0); +extern int InitAllocCheck(eAllocCheckOutput eOutput = ACOutput_Simple, BOOL bSetUnhandledExeptionFilter = TRUE, ULONG ulShowStackAtAlloc = 0); // will create the filename by itself + +extern ULONG DeInitAllocCheck(); + +extern DWORD StackwalkFilter( EXCEPTION_POINTERS *ep, DWORD status, LPCTSTR pszLogFile); + +extern void OnlyInstallUnhandeldExceptionFilter(eAllocCheckOutput eOutput = ACOutput_Simple); + +#ifdef __cplusplus +} +#endif + +#endif // __STACKWALKER_H__