include/SDL_assert.h
changeset 5552 2167a41feefe
parent 5541 b63f1383f8c9
child 5625 0a9b94c0613c
equal deleted inserted replaced
5548:8f0abb6ef37d 5552:2167a41feefe
    51 
    51 
    52 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
    52 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
    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__) && ((__i386__) || (__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>
    60     #define SDL_TriggerBreakpoint() raise(SIGTRAP)
    60     #define SDL_TriggerBreakpoint() raise(SIGTRAP)
    61 #else
    61 #else
    62     /* How do we trigger breakpoints on this platform? */
    62     /* How do we trigger breakpoints on this platform? */
    63     #define SDL_TriggerBreakpoint()
    63     #define SDL_TriggerBreakpoint()
    64 #endif
    64 #endif
    65 
    65 
    66 #if (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */
    66 #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */
    67 #   define SDL_FUNCTION __func__
    67 #   define SDL_FUNCTION __func__
    68 #elif ((__GNUC__ >= 2) || defined(_MSC_VER))
    68 #elif ((__GNUC__ >= 2) || defined(_MSC_VER))
    69 #   define SDL_FUNCTION __FUNCTION__
    69 #   define SDL_FUNCTION __FUNCTION__
    70 #else
    70 #else
    71 #   define SDL_FUNCTION "???"
    71 #   define SDL_FUNCTION "???"