summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2013-09-02 00:18:43 +0900
committertake_cheeze <[email protected]>2013-09-02 00:48:08 +0900
commit61e35988939e305f680c26cd1fa1c803e93d7caf (patch)
treeb2f5066c946a8cb5f16b42b4dc15e006cb64f75a
parentbd5afe9eef3be19c3cf9612388d0ba0227144683 (diff)
downloadmruby-61e35988939e305f680c26cd1fa1c803e93d7caf.tar.gz
mruby-61e35988939e305f680c26cd1fa1c803e93d7caf.zip
support c++ in mruby/debug.h
-rw-r--r--include/mruby/debug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mruby/debug.h b/include/mruby/debug.h
index 9b84719c4..ca657bf17 100644
--- a/include/mruby/debug.h
+++ b/include/mruby/debug.h
@@ -1,6 +1,10 @@
#ifndef MRUBY_DEBUG_H
#define MRUBY_DEBUG_H
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
#include <stdint.h>
#include "mruby/value.h"
@@ -54,4 +58,8 @@ mrb_irep_debug_info_file* mrb_debug_info_append_file(
mrb_irep_debug_info* mrb_debug_info_alloc(struct mrb_state* mrb, struct mrb_irep* irep);
void mrb_debug_info_free(struct mrb_state* mrb, mrb_irep_debug_info* d);
+#if defined(__cplusplus)
+} /* extern "C" { */
+#endif
+
#endif /* MRUBY_DEBUG_H */