/* Generated by Nim Compiler v1.2.6 */ /* (c) 2020 Andreas Rumpf */ /* The generated code is subject to the original license. */ /* Compiled for: Linux, amd64, gcc */ /* Command for C compiler: gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v2/node -o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-libbacktrace@slibbacktrace.nim.c.o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-libbacktrace@slibbacktrace.nim.c */ #define NIM_INTBITS 64 #include "nimbase.h" #include "libbacktrace_wrapper.h" #include #include #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(x, y) #define nimln_(x, y) typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef N_NOINLINE_PTR(NimStringDesc*, tyProc__RlJHE6omY7UCfrGlGvyuFg) (void); N_LIB_PRIVATE N_NIMCALL(void, registerStackTraceOverride__4MWZ9a28ipd9axQT3Q09bdIBQ)(tyProc__RlJHE6omY7UCfrGlGvyuFg overrideProc); N_LIB_PRIVATE N_NOINLINE(NimStringDesc*, getBacktrace__trG1rnJSWkgrj9cSj9bpw0pA)(void); static N_INLINE(NI, nimCStrLen)(NCSTRING a); N_NIMCALL(NimStringDesc*, mnewString)(NI len); N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b); static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size); static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size); N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n); #line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" static N_INLINE(NI, nimCStrLen)(NCSTRING a) { NI result; size_t T1_; result = (NI)0; #line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" #line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" #line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" T1_ = (size_t)0; T1_ = strlen(a); result = ((NI) (T1_)); return result;} #line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_; #line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" #line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim" T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));} #line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) { #line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" #line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim" nimCopyMem(dest, source, size); } #line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" N_LIB_PRIVATE N_NOINLINE(NimStringDesc*, getBacktrace__trG1rnJSWkgrj9cSj9bpw0pA)(void) { NimStringDesc* result; NCSTRING bt; NI btLen; result = (NimStringDesc*)0; #line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" #line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" bt = get_backtrace_max_length_c(((int) 128), ((int) 3)); #line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" #line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" btLen = (bt ? nimCStrLen(bt) : 0); #line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" #line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" if ((btLen) < ((NI) 0) || (btLen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(btLen, ((NI) 0), ((NI) IL64(9223372036854775807))); } #line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" result = mnewString(((NI) (btLen))); #line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" { #line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" if (!(((NI) 0) < btLen)) goto LA3_; #line 52 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" if ((NU)(((NI) 0)) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(((NI) 0),(result ? result->Sup.len : 0)-1); } if ((btLen) < ((NI) 0) || (btLen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(btLen, ((NI) 0), ((NI) IL64(9223372036854775807))); } #line 52 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&result->data[((NI) 0)]))), ((void*) (bt)), ((NI) (btLen))); } LA3_: ; #line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" #line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" free(((void*) (bt))); return result;} N_LIB_PRIVATE N_NIMCALL(void, libbacktrace_libbacktraceInit000)(void) { #line 999999 "generated_not_to_break_here" { #line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" #line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/libbacktrace.nim" registerStackTraceOverride__4MWZ9a28ipd9axQT3Q09bdIBQ(getBacktrace__trG1rnJSWkgrj9cSj9bpw0pA); } }