ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
platform/wasm/stubs/backtrace.c
Go to the documentation of this file.
1
7#include <stddef.h>
8
10 if (bt) {
11 bt->count = 0;
12 bt->symbols = NULL;
13 }
14}
15
17 if (bt) {
18 bt->count = 0;
19 bt->symbols = NULL;
20 }
21}
22
24 if (bt) {
25 bt->count = 0;
26 bt->symbols = NULL;
27 }
28}
29
31 if (bt) {
32 bt->count = 0;
33 bt->symbols = NULL;
34 }
35}
36
38 (void)bt;
39 // No-op for WASM
40}
41
42typedef bool (*backtrace_frame_filter_t)(const char *frame);
43
44void backtrace_print(const char *label, const backtrace_t *bt, int skip_frames, int max_frames,
46 (void)label;
47 (void)bt;
48 (void)skip_frames;
49 (void)max_frames;
50 (void)filter;
51 // No-op for WASM
52}
53
54void backtrace_print_simple(int skip_frames) {
55 (void)skip_frames;
56 // No-op for WASM
57}
📍 Backtrace capture, symbolization, and formatting
void backtrace_print_simple(int skip_frames)
Print backtrace of the current call stack.
void backtrace_t_free(backtrace_t *bt)
Free backtrace symbols.
void backtrace_capture_and_symbolize(backtrace_t *bt)
Capture and symbolize in one call.
void backtrace_capture(backtrace_t *bt)
Capture current stack into bt.
void backtrace_print(const char *label, const backtrace_t *bt, int skip_frames, int max_frames, backtrace_frame_filter_t filter)
Print backtrace with dual output: colored stderr + plain log file.
void backtrace_free(backtrace_t *bt)
bool(* backtrace_frame_filter_t)(const char *frame)
void backtrace_symbolize(backtrace_t *bt)
Symbolize bt->ptrs into bt->symbols.
int frame
Definition splash.c:99
#define bool
Definition stdbool.h:61
int count
Number of frames captured.
char ** symbols
Symbolized strings (NULL until backtrace_symbolize called)