cosmopolitan/libc/cxxabi.h
Trung Nguyen 6db1200a7e
libc: Fix cxxabi.h header (#1087)
- `__cxa_*` runtime functions are expected to be in the `abi` namespace,
which is currently an alias for `__cxxabiv1`.
- Rely on the header provided by `libcxxabi` for functions that we do
not implement ourselves anymore.
2024-01-15 11:50:38 -08:00

19 lines
475 B
C++

#ifndef _CXXABI_H
#define _CXXABI_H
COSMOPOLITAN_C_START_
#ifdef __cplusplus
namespace __cxxabiv1 {
#endif /* __cplusplus */
char *__cxa_demangle(const char *, char *, size_t *, int *);
int __cxa_atexit(void (*)(void *), void *, void *) paramsnonnull((1)) dontthrow;
int __cxa_thread_atexit(void *, void *, void *) dontthrow;
void __cxa_finalize(void *);
#ifdef __cplusplus
} /* namespace __cxxabiv1 */
#endif /* __cplusplus */
COSMOPOLITAN_C_END_
#endif /* _CXXABI_H */