include/SDL_assert.h
changeset 6430 48d519500f7e
parent 6138 4c64952a58fb
child 6761 dacf27c78462
equal deleted inserted replaced
6429:ff5e34883bf8 6430:48d519500f7e
    47 These are macros and not first class functions so that the debugger breaks
    47 These are macros and not first class functions so that the debugger breaks
    48 on the assertion line and not in some random guts of SDL, and so each
    48 on the assertion line and not in some random guts of SDL, and so each
    49 assert can have unique static variables associated with it.
    49 assert can have unique static variables associated with it.
    50 */
    50 */
    51 
    51 
    52 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
    52 #if defined(_MSC_VER)
    53 /* Don't include intrin.h here because it contains C++ code */
    53 /* Don't include intrin.h here because it contains C++ code */
    54 extern void __cdecl __debugbreak(void);
    54     extern void __cdecl __debugbreak(void);
    55     #define SDL_TriggerBreakpoint() __debugbreak()
    55     #define SDL_TriggerBreakpoint() __debugbreak()
    56 #elif (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)))
    56 #elif (defined(__GNUC__) && (defined(__i386__) || defined(__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)
    59     #include <signal.h>
    59     #include <signal.h>