Skip to content
Snippets Groups Projects
Commit ced2cf4c authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

backtrace: move print_backtrace() declaration to plain C

parent eb45418e
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,10 @@
#include "trivia/config.h"
#include <stddef.h>
#if defined(__cplusplus)
extern "C" {
#endif /* defined(__cplusplus) */
extern void *__libc_stack_end;
#ifdef ENABLE_BACKTRACE
......@@ -44,21 +48,17 @@ backtrace(void *frame, void *stack, size_t stack_size);
typedef int (backtrace_cb)(int frameno, void *frameret,
const char *func, size_t offset, void *cb_ctx);
#if defined(__cplusplus)
extern "C" {
#endif /* defined(__cplusplus) */
void
backtrace_foreach(backtrace_cb cb, void *frame, void *stack,
size_t stack_size, void *cb_ctx);
#endif /* ENABLE_BACKTRACE */
#if defined(__cplusplus)
} /* extern "C" */
#endif /* defined(__cplusplus) */
#endif /* ENABLE_BACKTRACE */
#ifdef HAVE_BFD
void
symbols_load(const char *name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment