include/SDL_assert.h
changeset 3665 97114af2f8dc
parent 3655 1cc7f0143c12
child 3666 0d58847d1e2a
equal deleted inserted replaced
3664:8bdc37b1a52a 3665:97114af2f8dc
    45 #endif /* SDL_ASSERT_LEVEL */
    45 #endif /* SDL_ASSERT_LEVEL */
    46 
    46 
    47 /*
    47 /*
    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 macro 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) && ((_M_IX86) || (_M_X64)))
    53 #if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64)))
    54     #define SDL_TriggerBreakpoint() __asm { int 3 }
    54     #define SDL_TriggerBreakpoint() __asm { int 3 }
    55 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
    55 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))