include/SDL_assert.h
changeset 3650 91460fdfe83a
parent 3649 1e74d7984d0b
child 3652 dbd6a29e4b77
equal deleted inserted replaced
3649:1e74d7984d0b 3650:91460fdfe83a
    56 
    56 
    57 #if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64)))
    57 #if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64)))
    58     #define SDL_TriggerBreakpoint() __asm { int 3 }
    58     #define SDL_TriggerBreakpoint() __asm { int 3 }
    59 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
    59 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
    60     #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
    60     #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
    61 #elif defined(unix)
    61 #elif defined(HAVE_SIGNAL_H)
    62     #include <signal.h>
    62     #include <signal.h>
    63     #define SDL_TriggerBreakpoint() raise(SIGTRAP)
    63     #define SDL_TriggerBreakpoint() raise(SIGTRAP)
    64 #else
    64 #else
    65     #error Please define your platform or set SDL_ASSERT_LEVEL to 0.
    65     #error Please define your platform or set SDL_ASSERT_LEVEL to 0.
    66 #endif
    66 #endif