add C++ guards

This commit is contained in:
Nils O. Selåsdal
2013-06-19 18:48:45 +02:00
parent 6268e6ac8e
commit b4f9ecafe2
7 changed files with 55 additions and 2 deletions
+9 -2
View File
@@ -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