mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-24 19:22:21 +00:00
Fixed ASSERT and ASSERT_MSG macros in Release configuration
This commit is contained in:
parent
d8acda6a8e
commit
3b7b5190a2
@ -52,9 +52,13 @@ extern "C"
|
||||
#define SAFE_DELETE(p) { if(p) { delete (p); (p)=nullptr; } }
|
||||
#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=nullptr; } }
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define ASSERT(_Expression) (void)( (!!(_Expression)) || (_wassert(_CRT_WIDE(#_Expression), _CRT_WIDE(__FILE__), __LINE__), 0) )
|
||||
|
||||
#define ASSERT_MSG(_Expression, _Message) (void)( (!!(_Expression)) || (_wassert(_CRT_WIDE(_Message), _CRT_WIDE(__FILE__), __LINE__), 0) )
|
||||
#else
|
||||
#define ASSERT(_Expression) ((void)0)
|
||||
#define ASSERT_MSG(_Expression, _Message) ((void)0)
|
||||
#endif
|
||||
|
||||
#include "extra/Vector2.h"
|
||||
#include "extra/Vector3.h"
|
||||
|
Loading…
Reference in New Issue
Block a user