add extern "C" guards; close #126

This commit is contained in:
Yukihiro Matsumoto
2012-05-18 02:02:49 +09:00
parent e67c03529d
commit a4d3579e31
15 changed files with 139 additions and 5 deletions
+9 -2
View File
@@ -7,9 +7,12 @@
#ifndef MRUBY_PROC_H
#define MRUBY_PROC_H
#include "mruby.h"
#include "irep.h"
#if defined(__cplusplus)
extern "C" {
#endif
struct REnv {
MRUBY_OBJECT_HEADER;
mrb_value *stack;
@@ -47,4 +50,8 @@ struct RProc *mrb_proc_new(mrb_state*, mrb_irep*);
struct RProc *mrb_proc_new_cfunc(mrb_state*, mrb_func_t);
struct RProc *mrb_closure_new(mrb_state*, mrb_irep*);
#endif /* MRUBY_STRING_H */
#if defined(__cplusplus)
} /* extern "C" { */
#endif
#endif /* MRUBY_PROC_H */