1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 00:54:05 +02:00

debugBreak function for Linux

This commit is contained in:
Gemma Peter
2017-06-02 01:21:10 +01:00
parent 65b73febbc
commit f408f179d2

View File

@@ -7,7 +7,12 @@
#include <float.h>
#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(); }
#ifndef ANDROID