mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
57c0b065c8
It's now possible to safely print C++ backtraces from signal handlers. This symbol demangler doesn't need malloc, tls, or even static memory. Additionally, this change makes it 2x faster and adds test cases. It's almost as performant and accurate as the libcxxabi implementation now.
13 lines
415 B
C
13 lines
415 B
C
#ifndef COSMOPOLITAN_LIBC_COSMO_H_
|
|
#define COSMOPOLITAN_LIBC_COSMO_H_
|
|
COSMOPOLITAN_C_START_
|
|
|
|
errno_t cosmo_once(_Atomic(uint32_t) *, void (*)(void));
|
|
int systemvpe(const char *, char *const[], char *const[]) libcesque;
|
|
char *GetProgramExecutableName(void);
|
|
void unleaf(void);
|
|
int __demangle(char *, const char *, size_t);
|
|
int __is_mangled(const char *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_COSMO_H_ */
|