mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Only fallback on native backtrace if there is no backtrace()
This commit is contained in:
committed by
Christoffer Lerno
parent
e826f02da5
commit
337eac6d2f
@@ -55,9 +55,7 @@ const CInt __W_CONTINUED = 0xffff;
|
||||
const CInt WNOHANG = 1;
|
||||
const CInt WUNTRACES = 2;
|
||||
|
||||
extern fn CInt backtrace(void** buffer, CInt size) @if(env::DARWIN);
|
||||
|
||||
fn CInt backtrace(void** buffer, CInt size) @if(!env::DARWIN)
|
||||
fn CInt backtrace(void** buffer, CInt size) @weak @extern("backtrace")
|
||||
{
|
||||
if (size < 1) return 0;
|
||||
void*[128] buffer_first;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define COMPILER_VERSION "0.4.707"
|
||||
#define COMPILER_VERSION "0.4.708"
|
||||
|
||||
Reference in New Issue
Block a user