mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-18 10:51:23 +02:00
debugBreak function for Linux
This commit is contained in:
@@ -7,7 +7,12 @@
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define debugBreak() _asm { int 3 }
|
#ifdef LINUX
|
||||||
|
#define debugBreak() raise(SIGTRAP);
|
||||||
|
#else
|
||||||
|
#define debugBreak() _asm { int 3 }
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ASSERT(expr) if (expr) {} else { LOG("ASSERT %s in %s:%d\n", #expr, __FILE__, __LINE__); debugBreak(); }
|
#define ASSERT(expr) if (expr) {} else { LOG("ASSERT %s in %s:%d\n", #expr, __FILE__, __LINE__); debugBreak(); }
|
||||||
|
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
|
Reference in New Issue
Block a user