#include #pragma once #define MyAssertMsg(expr, msg) (void)( expr || Jenga::AssertReport( __FILE__, __LINE__, msg ) ) #define MyAssert(expr) (void)( expr || Jenga::AssertReport( __FILE__, __LINE__, "" ) ) namespace Jenga { bool AssertReport( const char *lpszFilePath, int line, const char *msg ); bool AssertReport( const char *lpszFilePath, int line, const std::string &msg ); }