Only fallback on native backtrace if there is no backtrace()

This commit is contained in:
Christoffer Lerno
2023-11-20 11:32:53 +01:00
committed by Christoffer Lerno
parent e826f02da5
commit 337eac6d2f
2 changed files with 2 additions and 4 deletions

View File

@@ -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;

View File

@@ -1 +1 @@
#define COMPILER_VERSION "0.4.707"
#define COMPILER_VERSION "0.4.708"