From 9b438daf4114302e3b2069a4a9f23a1d8f790bd4 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 2 Oct 2010 13:51:07 +0000 Subject: [PATCH] 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 --- src/util/prec.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/prec.hpp b/src/util/prec.hpp index f0ad2569..85538512 100644 --- a/src/util/prec.hpp +++ b/src/util/prec.hpp @@ -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