mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
Fix error in vc9: use _wassert instead of _assert, the latter no longer exists.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1510 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+2
-2
@@ -93,9 +93,9 @@ class FileName : public wxString {
|
|||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
// Use OutputDebugString/DebugBreak for assertions if in debug mode
|
// Use OutputDebugString/DebugBreak for assertions if in debug mode
|
||||||
void msvc_assert(const char*, const char*, const char*, unsigned);
|
void msvc_assert(const wchar_t*, const wchar_t*, const wchar_t*, unsigned);
|
||||||
#undef assert
|
#undef assert
|
||||||
#define assert(exp) (void)( (exp) || (msvc_assert(nullptr, #exp, __FILE__, __LINE__), 0) )
|
#define assert(exp) (void)( (exp) || (msvc_assert(nullptr, _CRT_WIDE(#exp), _CRT_WIDE(__FILE__), __LINE__), 0) )
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user