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:
twanvl
2010-10-02 13:51:07 +00:00
parent 62a4bb7718
commit 9b438daf41
+2 -2
View File
@@ -93,9 +93,9 @@ class FileName : public wxString {
#ifdef _DEBUG
// 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
#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