mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
build: arm target support
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
#include <string>
|
||||
#include <time.h>
|
||||
|
||||
|
||||
// Enable to do pathmatch caching. Beware: this code isn't threadsafe.
|
||||
// #define DO_PATHMATCH_CACHE
|
||||
|
||||
@@ -66,7 +67,16 @@
|
||||
|
||||
static bool s_bShowDiag;
|
||||
#define DEBUG_MSG( ... ) if ( s_bShowDiag ) fprintf( stderr, ##__VA_ARGS__ )
|
||||
|
||||
#ifdef POSIX
|
||||
#include <signal.h>
|
||||
#define DEBUG_BREAK() raise(SIGINT)
|
||||
#elif !defined (__arm__)
|
||||
#define DEBUG_BREAK() __asm__ __volatile__ ( "int $3" )
|
||||
#else
|
||||
#define DEBUG_BREAK()
|
||||
#endif
|
||||
|
||||
#define _COMPILE_TIME_ASSERT(pred) switch(0){case 0:case pred:;}
|
||||
|
||||
#define WRAP( fn, ret, ... ) \
|
||||
|
||||
Reference in New Issue
Block a user