Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. inline void myassert(const char* errormsg, const char* file, unsigned linenum)
  2. {
  3. if (MessageBoxA(NULL, errormsg, "Continue execution?", MB_YESNO) == ID_NO)
  4. __debugbreak();
  5. }
  6.  
  7. #define ASSERT(x) (void)( (!!(x) ) || (myassert(_CRT_WIDE(#x), _CRT_WIDE(__FILE__), __LINE__), 0) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement