Fix DEBUGGER_BREAKPOINT on Win64

This commit is contained in:
Willi Schinmeyer
2024-12-04 09:50:43 +05:00
committed by Garux
parent 721687afbe
commit 2019293ae5
+4
View File
@@ -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