summaryrefslogtreecommitdiffhomepage
path: root/include/mruby/irep.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mruby/irep.h')
-rw-r--r--include/mruby/irep.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index 2d25d0c4a..d92aef9a0 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -7,6 +7,10 @@
#ifndef MRUBY_IREP_H
#define MRUBY_IREP_H
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
typedef struct mrb_irep {
int idx;
@@ -26,4 +30,8 @@ typedef struct mrb_irep {
void mrb_add_irep(mrb_state *mrb, int n);
+#if defined(__cplusplus)
+} /* extern "C" { */
+#endif
+
#endif /* MRUBY_IREP_H */