Fix a bug in example code

This commit is contained in:
Justine Tunney 2024-07-19 19:11:28 -07:00
parent 1029dcc597
commit 0ed916ad5c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 3 additions and 3 deletions

View file

@ -7,9 +7,8 @@
http://creativecommons.org/publicdomain/zero/1.0/ │ http://creativecommons.org/publicdomain/zero/1.0/ │
*/ */
#endif #endif
#include "libc/calls/calls.h" #include <cosmo.h>
#include "libc/math.h" #include <math.h>
#include "libc/runtime/runtime.h"
void crash(long x0, long x1, long x2, // void crash(long x0, long x1, long x2, //
double v0, double v1, double v2) { double v0, double v1, double v2) {

View file

@ -33,6 +33,7 @@ __static_yoink("__die"); // for backtracing
__static_yoink("ShowBacktrace"); // for backtracing __static_yoink("ShowBacktrace"); // for backtracing
__static_yoink("GetSymbolTable"); // for backtracing __static_yoink("GetSymbolTable"); // for backtracing
__static_yoink("PrintBacktraceUsingSymbols"); // for backtracing __static_yoink("PrintBacktraceUsingSymbols"); // for backtracing
__static_yoink("__demangle"); // for pretty c++ symbols
__static_yoink("malloc_inspect_all"); // for asan memory origin __static_yoink("malloc_inspect_all"); // for asan memory origin
__static_yoink("GetSymbolByAddr"); // for asan memory origin __static_yoink("GetSymbolByAddr"); // for asan memory origin
#endif #endif