mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
Fix DEBUGGER_BREAKPOINT on Win64
This commit is contained in:
@@ -28,7 +28,11 @@
|
||||
#include "generic/static.h"
|
||||
|
||||
#if defined( _MSC_VER ) && ( defined( _M_IX86 ) || defined( _M_AMD64 ) )
|
||||
#ifdef _M_AMD64
|
||||
#define DEBUGGER_BREAKPOINT() __debugbreak()
|
||||
#else
|
||||
#define DEBUGGER_BREAKPOINT() __asm { int 3 }
|
||||
#endif
|
||||
#elif ( defined ( __i386__ ) || defined ( __x86_64__ ) ) && defined ( __GNUC__ ) && __GNUC__ >= 2
|
||||
#define DEBUGGER_BREAKPOINT() __asm__ __volatile__ ( "int $03" )
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user