mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -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@1511 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+5
-6
@@ -275,15 +275,14 @@ void MSE::HandleEvent(wxEvtHandler *handler, wxEventFunction func, wxEvent& even
|
|||||||
|
|
||||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||||
// Print assert failures to debug output
|
// Print assert failures to debug output
|
||||||
void msvc_assert(const char*, const char*, const char*, unsigned);
|
|
||||||
void MSE::OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg) {
|
void MSE::OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg) {
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
char file_[1024]; wcstombs(file_,file,1023);
|
|
||||||
char cond_[1024]; wcstombs(cond_,cond,1023);
|
|
||||||
char msg_ [1024]; wcstombs(msg_, msg, 1023);
|
|
||||||
msvc_assert(msg_, cond_, file_, line);
|
|
||||||
#else
|
|
||||||
msvc_assert(msg, cond, file, line);
|
msvc_assert(msg, cond, file, line);
|
||||||
|
#else
|
||||||
|
wchar_t file_[1024]; mbstowcs(file_,file,1023);
|
||||||
|
wchar_t cond_[1024]; mbstowcs(cond_,cond,1023);
|
||||||
|
wchar_t msg_ [1024]; mbstowcs(msg_, msg, 1023);
|
||||||
|
msvc_assert(msg_, cond_, file_, line);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user