mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
wrap function prototype by extern "C"
This commit is contained in:
@@ -9,8 +9,15 @@
|
||||
#define RITEBIN_EXT ".mrb"
|
||||
#define C_EXT ".c"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
void mrb_show_version(mrb_state *);
|
||||
void mrb_show_copyright(mrb_state *);
|
||||
}
|
||||
#else
|
||||
void mrb_show_version(mrb_state *);
|
||||
void mrb_show_copyright(mrb_state *);
|
||||
#endif
|
||||
|
||||
struct mrbc_args {
|
||||
int argc;
|
||||
|
||||
Reference in New Issue
Block a user