comparison include/SDL_assert.h @ 5088:c2539ff054c8

Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 15:46:11 -0800
parents d306007299ac
children b530ef003506
comparison
equal deleted inserted replaced
5087:e7680e2c9f3c 5088:c2539ff054c8
48 These are macros and not first class functions so that the debugger breaks 48 These are macros and not first class functions so that the debugger breaks
49 on the assertion line and not in some random guts of SDL, and so each 49 on the assertion line and not in some random guts of SDL, and so each
50 assert can have unique static variables associated with it. 50 assert can have unique static variables associated with it.
51 */ 51 */
52 52
53 #if defined(_MSC_VER) 53 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
54 #include <intrin.h> 54 #include <intrin.h>
55 #define SDL_TriggerBreakpoint() __debugbreak() 55 #define SDL_TriggerBreakpoint() __debugbreak()
56 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__))) 56 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
57 #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" ) 57 #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
58 #elif defined(HAVE_SIGNAL_H) 58 #elif defined(HAVE_SIGNAL_H)