From 61e35988939e305f680c26cd1fa1c803e93d7caf Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Mon, 2 Sep 2013 00:18:43 +0900 Subject: support c++ in mruby/debug.h --- include/mruby/debug.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 #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 */ -- cgit v1.2.3