include/SDL_assert.h
changeset 5086 c2539ff054c8
parent 5011 d306007299ac
child 5262 b530ef003506
equal deleted inserted replaced
5085:e7680e2c9f3c 5086: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)