add extern funcs declaration and casts for cimpiling C++ compiler

This commit is contained in:
arton
2013-04-28 15:31:50 +09:00
parent 5c68195c88
commit 513bce35f6
5 changed files with 19 additions and 7 deletions
Regular → Executable
+9
View File
@@ -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)