sourcehook/sourcehook.h
changeset 34 11e62a912700
parent 32 865a89091543
child 41 534eac4c53ef
     1.1 --- a/sourcehook/sourcehook.h	Fri Apr 22 14:28:52 2005 +0000
     1.2 +++ b/sourcehook/sourcehook.h	Fri Apr 22 14:29:25 2005 +0000
     1.3 @@ -24,16 +24,16 @@
     1.4  #define SH_GLOB_PLUGPTR g_PLID
     1.5  #endif
     1.6  
     1.7 -#define SH_ASSERT(x) if (!(x)) __asm { int 3 }
     1.8 -
     1.9  // System
    1.10  #define SH_SYS_WIN32 1
    1.11  #define SH_SYS_LINUX 2
    1.12  
    1.13  #ifdef _WIN32
    1.14  # define SH_SYS SH_SYS_WIN32
    1.15 +# define SH_ASSERT(x) if (!(x)) __asm { int 3 }
    1.16  #elif defined __linux__
    1.17  # define SH_SYS SH_SYS_LINUX
    1.18 +# define SH_ASSERT(x) if (!(x)) asm("int $3");
    1.19  #else
    1.20  # error Unsupported system
    1.21  #endif