add C++ guards
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
#ifndef UC_BACKTRACE_H_
|
||||
#define UC_BACKTRACE_H_
|
||||
|
||||
#define UC_BACTRACE_STDERR uc_backtrace_fd(2)
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define UC_BACTRACE_STDERR uc_backtrace_fd(2)
|
||||
/**
|
||||
* Print a stacktrace to the given file descriptor.
|
||||
*
|
||||
@@ -21,4 +24,8 @@ void uc_backtrace_fd(int fd);
|
||||
*/
|
||||
void uc_backtrace_buf(char *buf, size_t len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user