mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add extern funcs declaration and casts for cimpiling C++ compiler
This commit is contained in:
@@ -22,6 +22,15 @@
|
||||
#include "opcode.h"
|
||||
#include "value_array.h"
|
||||
|
||||
#ifndef ENABLE_STDIO
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
void abort(void);
|
||||
#if defined(__cplusplus)
|
||||
} /* extern "C" { */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define SET_TRUE_VALUE(r) MRB_SET_VALUE(r, MRB_TT_TRUE, value.i, 1)
|
||||
#define SET_FALSE_VALUE(r) MRB_SET_VALUE(r, MRB_TT_FALSE, value.i, 1)
|
||||
|
||||
Reference in New Issue
Block a user