summaryrefslogtreecommitdiff
path: root/Ivy/IvyStdAfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyStdAfx.h')
-rw-r--r--Ivy/IvyStdAfx.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/Ivy/IvyStdAfx.h b/Ivy/IvyStdAfx.h
index c9ed653..b197ad7 100644
--- a/Ivy/IvyStdAfx.h
+++ b/Ivy/IvyStdAfx.h
@@ -62,37 +62,23 @@ using std::list;
-#ifdef WIN32
+#ifdef WIN32
#ifndef TRACE
void DebugTrace ( const char *fmt , ... );
#define TRACE DebugTrace
#endif
-#ifndef ASSERT
-#define ASSERT(expr) \
- do { \
- if (! (expr) ) \
- {\
- TRACE( "Assert (%s) at %s:%d\n", #expr, __FILE__ , __LINE__ ); \
- DebugBreak(); \
- }\
- } while (0)
-#endif
-#elif defined( _WIN32_WCE )
-
-
-#ifndef TRACE
-void DebugTrace ( const char *fmt , ... );
-#define TRACE DebugTrace
-#endif
+#if defined(_WIN32_WCE)
+#undef ASSERT
+#endif // _WIN32_WCE
#ifndef ASSERT
#define ASSERT(expr) \
do { \
if (! (expr) ) \
{\
- TRACE( "Assert (%s) failed in file %s at line %d\r\n", #expr, __FILE__ , __LINE__ ); \
+ TRACE( "Assert (%s) failed in file %s at line %d\r\n", TEXT(#expr), __FILE__ , __LINE__ ); \
DebugBreak(); \
}\
} while (0)