Added attribution for __debugbreak()

This commit is contained in:
Phil Nash 2011-02-16 19:22:29 +00:00
parent 73acd945cd
commit ab30ab6b76

View File

@ -78,9 +78,10 @@
#endif
#endif
#elif defined(__WIN32__) && defined(_MSC_VER)
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
#elif defined(__WIN32__) && defined(_MSC_VER)
// Thanks to jalfd for the following:
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
#else
inline void BreakIntoDebugger(){}
#endif