Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline void myassert(const char* errormsg, const char* file, unsigned linenum)
- {
- if (MessageBoxA(NULL, errormsg, "Continue execution?", MB_YESNO) == ID_NO)
- __debugbreak();
- }
- #define ASSERT(x) (void)( (!!(x) ) || (myassert(_CRT_WIDE(#x), _CRT_WIDE(__FILE__), __LINE__), 0) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement