1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-08 01:05:59 +02:00

Working on Linux fixes

This commit is contained in:
bfiete 2020-05-21 06:58:26 -07:00
parent cce45dbc15
commit 6b46904510
18 changed files with 135 additions and 25 deletions

View file

@ -1,4 +1,3 @@
#define BFP_HAS_BACKTRACE
#define BFP_HAS_EXECINFO
#define BFP_HAS_PTHREAD_TIMEDJOIN_NP
#define BFP_HAS_PTHREAD_GETATTR_NP

View file

@ -27,8 +27,14 @@
#endif
#ifdef BFP_HAS_BACKTRACE
#ifdef BFP_BACKTRACE_PATH
#include BFP_BACKTRACE_PATH
#else
#include "backtrace.h"
#include "backtrace-supported.h"
#endif
#endif
#include "../third_party/stb/stb_sprintf.h"
#include <cxxabi.h>
@ -1357,6 +1363,7 @@ BFP_EXPORT BfpThreadInfo* BFP_CALLTYPE BfpThreadInfo_Create()
threadInfo->mStackBase = 0;
threadInfo->mStackLimit = 0;
threadInfo->mPThread = pthread_self();
return threadInfo;
}
BFP_EXPORT void BFP_CALLTYPE BfpThreadInfo_Release(BfpThreadInfo* threadInfo)