diff options
Diffstat (limited to 'Bus/Ivy/IvyStdAfx.h')
-rw-r--r-- | Bus/Ivy/IvyStdAfx.h | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/Bus/Ivy/IvyStdAfx.h b/Bus/Ivy/IvyStdAfx.h index c9ed653..b197ad7 100644 --- a/Bus/Ivy/IvyStdAfx.h +++ b/Bus/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)
|