Minimize the changes in #5277

Instead of including `mruby/presym.h` everywhere, we provided the
fallback `mruby/presym.inc` under `include/mruby` directory, and specify
`-I<build-dir>/include` before `-I<top-dir>/include` in `presym.rake`.
So even when someone drops `-I<build-dir>/include` in compiler options,
it just compiles without failure.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-01-22 18:38:53 +09:00
parent c5c156a6dd
commit dc51d89ac2
45 changed files with 1037 additions and 1049 deletions
+19 -21
View File
@@ -1298,31 +1298,33 @@ MRB_API void mrb_print_error(mrb_state *mrb);
/* function for `raisef` formatting */ /* function for `raisef` formatting */
MRB_API mrb_value mrb_vformat(mrb_state *mrb, const char *format, va_list ap); MRB_API mrb_value mrb_vformat(mrb_state *mrb, const char *format, va_list ap);
#include <mruby/presym.h>
/* macros to get typical exception objects /* macros to get typical exception objects
note: note:
+ those E_* macros requires mrb_state* variable named mrb. + those E_* macros requires mrb_state* variable named mrb.
+ exception objects obtained from those macros are local to mrb + exception objects obtained from those macros are local to mrb
*/ */
#define E_RUNTIME_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "RuntimeError")) #define E_RUNTIME_ERROR mrb_exc_get_id(mrb, MRB_SYM(RuntimeError))
#define E_TYPE_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "TypeError")) #define E_TYPE_ERROR mrb_exc_get_id(mrb, MRB_SYM(TypeError))
#define E_ZERODIV_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "ZeroDivisionError")) #define E_ZERODIV_ERROR mrb_exc_get_id(mrb, MRB_SYM(ZeroDivisionError))
#define E_ARGUMENT_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "ArgumentError")) #define E_ARGUMENT_ERROR mrb_exc_get_id(mrb, MRB_SYM(ArgumentError))
#define E_INDEX_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "IndexError")) #define E_INDEX_ERROR mrb_exc_get_id(mrb, MRB_SYM(IndexError))
#define E_RANGE_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "RangeError")) #define E_RANGE_ERROR mrb_exc_get_id(mrb, MRB_SYM(RangeError))
#define E_NAME_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "NameError")) #define E_NAME_ERROR mrb_exc_get_id(mrb, MRB_SYM(NameError))
#define E_NOMETHOD_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "NoMethodError")) #define E_NOMETHOD_ERROR mrb_exc_get_id(mrb, MRB_SYM(NoMethodError))
#define E_SCRIPT_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "ScriptError")) #define E_SCRIPT_ERROR mrb_exc_get_id(mrb, MRB_SYM(ScriptError))
#define E_SYNTAX_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "SyntaxError")) #define E_SYNTAX_ERROR mrb_exc_get_id(mrb, MRB_SYM(SyntaxError))
#define E_LOCALJUMP_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "LocalJumpError")) #define E_LOCALJUMP_ERROR mrb_exc_get_id(mrb, MRB_SYM(LocalJumpError))
#define E_REGEXP_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "RegexpError")) #define E_REGEXP_ERROR mrb_exc_get_id(mrb, MRB_SYM(RegexpError))
#define E_FROZEN_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "FrozenError")) #define E_FROZEN_ERROR mrb_exc_get_id(mrb, MRB_SYM(FrozenError))
#define E_NOTIMP_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "NotImplementedError")) #define E_NOTIMP_ERROR mrb_exc_get_id(mrb, MRB_SYM(NotImplementedError))
#ifndef MRB_NO_FLOAT #ifndef MRB_NO_FLOAT
#define E_FLOATDOMAIN_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "FloatDomainError")) #define E_FLOATDOMAIN_ERROR mrb_exc_get_id(mrb, MRB_SYM(FloatDomainError))
#endif #endif
#define E_KEY_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "KeyError")) #define E_KEY_ERROR mrb_exc_get_id(mrb, MRB_SYM(KeyError))
MRB_API mrb_value mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg); MRB_API mrb_value mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg);
MRB_API mrb_value mrb_yield_argv(mrb_state *mrb, mrb_value b, mrb_int argc, const mrb_value *argv); MRB_API mrb_value mrb_yield_argv(mrb_state *mrb, mrb_value b, mrb_int argc, const mrb_value *argv);
@@ -1389,7 +1391,7 @@ MRB_API mrb_value mrb_fiber_alive_p(mrb_state *mrb, mrb_value fib);
* *
* Implemented in mruby-fiber * Implemented in mruby-fiber
*/ */
#define E_FIBER_ERROR mrb_exc_get_id(mrb, mrb_intern_lit(mrb, "FiberError")) #define E_FIBER_ERROR (mrb_exc_get_id(mrb, MRB_SYM(FiberError)))
MRB_API void mrb_stack_extend(mrb_state*, mrb_int); MRB_API void mrb_stack_extend(mrb_state*, mrb_int);
/* memory pool implementation */ /* memory pool implementation */
@@ -1409,10 +1411,6 @@ MRB_API void mrb_show_copyright(mrb_state *mrb);
MRB_API mrb_value mrb_format(mrb_state *mrb, const char *format, ...); MRB_API mrb_value mrb_format(mrb_state *mrb, const char *format, ...);
#ifdef MRB_PRESYM_SCANNING
# include <mruby/presym/scanning.h>
#endif
#if 0 #if 0
/* memcpy and memset does not work with gdb reverse-next on my box */ /* memcpy and memset does not work with gdb reverse-next on my box */
/* use naive memcpy and memset instead */ /* use naive memcpy and memset instead */
+3 -1
View File
@@ -9,7 +9,9 @@
#if defined(MRB_NO_PRESYM) #if defined(MRB_NO_PRESYM)
# include <mruby/presym/disable.h> # include <mruby/presym/disable.h>
#elif !defined(MRB_PRESYM_SCANNING) #elif defined(MRB_PRESYM_SCANNING)
# include <mruby/presym/scanning.h>
#else
# include <mruby/presym/enable.h> # include <mruby/presym/enable.h>
#endif #endif
+14
View File
@@ -0,0 +1,14 @@
/**
** @file mruby/presym.inc - Fallback file for Preallocated Symbols
**
** See Copyright Notice in mruby.h
*/
/*
* Reading this file means you failed to specify `-I<build-dir>/include`
* in the configuration. I will not use `PRESYM*` macros for compilation.
*/
# error "mruby/presym.h"
1 1 + + d
#define MRB_NO_PRESYM
+16
View File
@@ -8,6 +8,20 @@
#define MRUBY_PRESYM_ENABLE_H #define MRUBY_PRESYM_ENABLE_H
#undef MRB_PRESYM_MAX #undef MRB_PRESYM_MAX
#define MRB_PRESYM_NAMED(lit, num, type, name)
#define MRB_PRESYM_UNNAMED(lit, num)
/* test for proper -I `<build-dir>/include` */
/* fallback `presym.inc` defines `MRB_NO_PRESYM` */
# include <mruby/presym.inc>
#undef MRB_PRESYM_MAX
#undef MRB_PRESYM_NAMED
#undef MRB_PRESYM_UNNAMED
#if defined(MRB_NO_PRESYM)
# include <mruby/presym/disable.h>
#else
#define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num), #define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num),
#define MRB_PRESYM_UNNAMED(lit, num) #define MRB_PRESYM_UNNAMED(lit, num)
@@ -38,4 +52,6 @@ enum mruby_presym {
static const mrb_sym name[] = {__VA_ARGS__}; \ static const mrb_sym name[] = {__VA_ARGS__}; \
static void init_##name(mrb_state *mrb) {} static void init_##name(mrb_state *mrb) {}
#endif /* !MRUBY_NO_PRESYM */
#endif /* MRUBY_PRESYM_ENABLE_H */ #endif /* MRUBY_PRESYM_ENABLE_H */
-1
View File
@@ -3,7 +3,6 @@
#include <mruby/array.h> #include <mruby/array.h>
#include <mruby/range.h> #include <mruby/range.h>
#include <mruby/hash.h> #include <mruby/hash.h>
#include <mruby/presym.h>
/* /*
* call-seq: * call-seq:
@@ -11,7 +11,6 @@
#include <mruby/error.h> #include <mruby/error.h>
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/presym.h>
#include "apiprint.h" #include "apiprint.h"
static void static void
-1
View File
@@ -18,7 +18,6 @@
#include <mruby/dump.h> #include <mruby/dump.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/variable.h> #include <mruby/variable.h>
#include <mruby/presym.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
-1
View File
@@ -15,7 +15,6 @@
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/debug.h> #include <mruby/debug.h>
#include <mruby/presym.h>
#include "node.h" #include "node.h"
#include <mruby/opcode.h> #include <mruby/opcode.h>
#include <mruby/re.h> #include <mruby/re.h>
-1
View File
@@ -22,7 +22,6 @@
#include <mruby/throw.h> #include <mruby/throw.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/dump.h> #include <mruby/dump.h>
#include <mruby/presym.h>
#include "node.h" #include "node.h"
#define YYLEX_PARAM p #define YYLEX_PARAM p
File diff suppressed because it is too large Load Diff
-1
View File
@@ -1,7 +1,6 @@
#include <mruby.h> #include <mruby.h>
#include <mruby/class.h> #include <mruby/class.h>
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/presym.h>
#include <math.h> #include <math.h>
#ifdef MRB_NO_FLOAT #ifdef MRB_NO_FLOAT
-1
View File
@@ -5,7 +5,6 @@
#include <mruby/proc.h> #include <mruby/proc.h>
#include <mruby/opcode.h> #include <mruby/opcode.h>
#include <mruby/error.h> #include <mruby/error.h>
#include <mruby/presym.h>
struct REnv *mrb_env_new(mrb_state *mrb, struct mrb_context *c, mrb_callinfo *ci, int nstacks, mrb_value *stack, struct RClass *tc); struct REnv *mrb_env_new(mrb_state *mrb, struct mrb_context *c, mrb_callinfo *ci, int nstacks, mrb_value *stack, struct RClass *tc);
mrb_value mrb_exec_irep(mrb_state *mrb, mrb_value self, struct RProc *p); mrb_value mrb_exec_irep(mrb_state *mrb, mrb_value self, struct RProc *p);
-1
View File
@@ -8,7 +8,6 @@
#include "mruby/string.h" #include "mruby/string.h"
#include "mruby/ext/io.h" #include "mruby/ext/io.h"
#include "mruby/error.h" #include "mruby/error.h"
#include "mruby/presym.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
-1
View File
@@ -11,7 +11,6 @@
#include "mruby/variable.h" #include "mruby/variable.h"
#include "mruby/ext/io.h" #include "mruby/ext/io.h"
#include "mruby/error.h" #include "mruby/error.h"
#include "mruby/presym.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
-1
View File
@@ -3,7 +3,6 @@
#include <mruby/array.h> #include <mruby/array.h>
#include <mruby/hash.h> #include <mruby/hash.h>
#include <mruby/range.h> #include <mruby/range.h>
#include <mruby/presym.h>
static mrb_value static mrb_value
mrb_f_caller(mrb_state *mrb, mrb_value self) mrb_f_caller(mrb_state *mrb, mrb_value self)
-1
View File
@@ -11,7 +11,6 @@
#endif #endif
#include <mruby/array.h> #include <mruby/array.h>
#include <mruby/presym.h>
#include <math.h> #include <math.h>
static void static void
-1
View File
@@ -5,7 +5,6 @@
#include "mruby/proc.h" #include "mruby/proc.h"
#include "mruby/class.h" #include "mruby/class.h"
#include "mruby/string.h" #include "mruby/string.h"
#include "mruby/presym.h"
typedef enum { typedef enum {
NOEX_PUBLIC = 0x00, NOEX_PUBLIC = 0x00,
-1
View File
@@ -4,7 +4,6 @@
#include "mruby/variable.h" #include "mruby/variable.h"
#include "mruby/proc.h" #include "mruby/proc.h"
#include "mruby/string.h" #include "mruby/string.h"
#include "mruby/presym.h"
static struct RObject * static struct RObject *
method_object_alloc(mrb_state *mrb, struct RClass *mclass) method_object_alloc(mrb_state *mrb, struct RClass *mclass)
@@ -1,7 +1,6 @@
#include <limits.h> #include <limits.h>
#include <mruby.h> #include <mruby.h>
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/presym.h>
/* /*
* call-seq: * call-seq:
-1
View File
@@ -3,7 +3,6 @@
#include <mruby/class.h> #include <mruby/class.h>
#include <mruby/hash.h> #include <mruby/hash.h>
#include <mruby/proc.h> #include <mruby/proc.h>
#include <mruby/presym.h>
/* /*
* call-seq: * call-seq:
@@ -10,7 +10,6 @@
#include <mruby/proc.h> #include <mruby/proc.h>
#include <mruby/value.h> #include <mruby/value.h>
#include <mruby/range.h> #include <mruby/range.h>
#include <mruby/presym.h>
struct os_count_struct { struct os_count_struct {
mrb_int total; mrb_int total;
-1
View File
@@ -4,7 +4,6 @@
#include <mruby/array.h> #include <mruby/array.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/debug.h> #include <mruby/debug.h>
#include <mruby/presym.h>
static mrb_value static mrb_value
mrb_proc_lambda_p(mrb_state *mrb, mrb_value self) mrb_proc_lambda_p(mrb_state *mrb, mrb_value self)
-1
View File
@@ -10,7 +10,6 @@
#include <mruby/data.h> #include <mruby/data.h>
#include <mruby/array.h> #include <mruby/array.h>
#include <mruby/istruct.h> #include <mruby/istruct.h>
#include <mruby/presym.h>
#include <time.h> #include <time.h>
-1
View File
@@ -2,7 +2,6 @@
#include <mruby/class.h> #include <mruby/class.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/presym.h>
struct mrb_rational { struct mrb_rational {
mrb_int numerator; mrb_int numerator;
-1
View File
@@ -42,7 +42,6 @@
#include "mruby/string.h" #include "mruby/string.h"
#include "mruby/variable.h" #include "mruby/variable.h"
#include "mruby/error.h" #include "mruby/error.h"
#include "mruby/presym.h"
#include "mruby/ext/io.h" #include "mruby/ext/io.h"
-1
View File
@@ -10,7 +10,6 @@
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/hash.h> #include <mruby/hash.h>
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/presym.h>
#ifndef MRB_NO_FLOAT #ifndef MRB_NO_FLOAT
#include <math.h> #include <math.h>
#endif #endif
-1
View File
@@ -13,7 +13,6 @@
#include <mruby/hash.h> #include <mruby/hash.h>
#include <mruby/range.h> #include <mruby/range.h>
#include <mruby/proc.h> #include <mruby/proc.h>
#include <mruby/presym.h>
#define RSTRUCT_LEN(st) RARRAY_LEN(st) #define RSTRUCT_LEN(st) RARRAY_LEN(st)
#define RSTRUCT_PTR(st) RARRAY_PTR(st) #define RSTRUCT_PTR(st) RARRAY_PTR(st)
-1
View File
@@ -14,7 +14,6 @@
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/time.h> #include <mruby/time.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/presym.h>
#ifdef MRB_NO_STDIO #ifdef MRB_NO_STDIO
#include <string.h> #include <string.h>
-1
View File
@@ -14,7 +14,6 @@
#include <mruby/error.h> #include <mruby/error.h>
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/data.h> #include <mruby/data.h>
#include <mruby/presym.h>
struct backtrace_location { struct backtrace_location {
int32_t lineno; int32_t lineno;
-1
View File
@@ -17,7 +17,6 @@
#include <mruby/data.h> #include <mruby/data.h>
#include <mruby/istruct.h> #include <mruby/istruct.h>
#include <mruby/opcode.h> #include <mruby/opcode.h>
#include <mruby/presym.h>
union mt_ptr { union mt_ptr {
struct RProc *proc; struct RProc *proc;
+1 -4
View File
@@ -1216,10 +1216,7 @@ mrb_dump_irep_cstruct(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE
if (fp == NULL || initname == NULL || initname[0] == '\0') { if (fp == NULL || initname == NULL || initname[0] == '\0') {
return MRB_DUMP_INVALID_ARGUMENT; return MRB_DUMP_INVALID_ARGUMENT;
} }
if (fprintf(fp, "#include <mruby.h>\n" if (fprintf(fp, "#include <mruby.h>\n" "#include <mruby/proc.h>\n\n") < 0) {
"#include <mruby/proc.h>\n"
"#include <mruby/presym.h>\n"
"\n") < 0) {
return MRB_DUMP_WRITE_FAULT; return MRB_DUMP_WRITE_FAULT;
} }
fputs("#define mrb_BRACED(...) {__VA_ARGS__}\n", fp); fputs("#define mrb_BRACED(...) {__VA_ARGS__}\n", fp);
-1
View File
@@ -16,7 +16,6 @@
#include <mruby/error.h> #include <mruby/error.h>
#include <mruby/class.h> #include <mruby/class.h>
#include <mruby/throw.h> #include <mruby/throw.h>
#include <mruby/presym.h>
MRB_API mrb_value MRB_API mrb_value
mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, size_t len) mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, size_t len)
-1
View File
@@ -22,7 +22,6 @@
#include <mruby/gc.h> #include <mruby/gc.h>
#include <mruby/error.h> #include <mruby/error.h>
#include <mruby/throw.h> #include <mruby/throw.h>
#include <mruby/presym.h>
/* /*
= Tri-color Incremental Garbage Collection = Tri-color Incremental Garbage Collection
-1
View File
@@ -11,7 +11,6 @@
#include <mruby/hash.h> #include <mruby/hash.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/variable.h> #include <mruby/variable.h>
#include <mruby/presym.h>
/* /*
* === Glossary * === Glossary
-1
View File
@@ -13,7 +13,6 @@
#include <mruby/variable.h> #include <mruby/variable.h>
#include <mruby/error.h> #include <mruby/error.h>
#include <mruby/istruct.h> #include <mruby/istruct.h>
#include <mruby/presym.h>
MRB_API mrb_bool MRB_API mrb_bool
mrb_func_basic_p(mrb_state *mrb, mrb_value obj, mrb_sym mid, mrb_func_t func) mrb_func_basic_p(mrb_state *mrb, mrb_value obj, mrb_sym mid, mrb_func_t func)
-1
View File
@@ -17,7 +17,6 @@
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/class.h> #include <mruby/class.h>
#include <mruby/presym.h>
#ifndef MRB_NO_FLOAT #ifndef MRB_NO_FLOAT
#ifdef MRB_USE_FLOAT32 #ifdef MRB_USE_FLOAT32
-1
View File
@@ -9,7 +9,6 @@
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/class.h> #include <mruby/class.h>
#include <mruby/presym.h>
MRB_API mrb_bool MRB_API mrb_bool
mrb_obj_eq(mrb_state *mrb, mrb_value v1, mrb_value v2) mrb_obj_eq(mrb_state *mrb, mrb_value v1, mrb_value v2)
-1
View File
@@ -8,7 +8,6 @@
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/variable.h> #include <mruby/variable.h>
#include <mruby/error.h> #include <mruby/error.h>
#include <mruby/presym.h>
#include <string.h> #include <string.h>
#ifndef MRB_NO_STDIO #ifndef MRB_NO_STDIO
-1
View File
@@ -9,7 +9,6 @@
#include <mruby/proc.h> #include <mruby/proc.h>
#include <mruby/opcode.h> #include <mruby/opcode.h>
#include <mruby/data.h> #include <mruby/data.h>
#include <mruby/presym.h>
static const mrb_code call_iseq[] = { static const mrb_code call_iseq[] = {
OP_CALL, OP_CALL,
-1
View File
@@ -9,7 +9,6 @@
#include <mruby/range.h> #include <mruby/range.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/array.h> #include <mruby/array.h>
#include <mruby/presym.h>
#define RANGE_INITIALIZED_MASK 1 #define RANGE_INITIALIZED_MASK 1
#define RANGE_INITIALIZED(p) ((p)->flags |= RANGE_INITIALIZED_MASK) #define RANGE_INITIALIZED(p) ((p)->flags |= RANGE_INITIALIZED_MASK)
-1
View File
@@ -22,7 +22,6 @@
#include <mruby/range.h> #include <mruby/range.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/numeric.h> #include <mruby/numeric.h>
#include <mruby/presym.h>
typedef struct mrb_shared_string { typedef struct mrb_shared_string {
int refcnt; int refcnt;
-1
View File
@@ -11,7 +11,6 @@
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/dump.h> #include <mruby/dump.h>
#include <mruby/class.h> #include <mruby/class.h>
#include <mruby/presym.h>
#ifndef MRB_NO_PRESYM #ifndef MRB_NO_PRESYM
-1
View File
@@ -10,7 +10,6 @@
#include <mruby/proc.h> #include <mruby/proc.h>
#include <mruby/string.h> #include <mruby/string.h>
#include <mruby/variable.h> #include <mruby/variable.h>
#include <mruby/presym.h>
struct iv_elem { struct iv_elem {
mrb_sym key; mrb_sym key;
-1
View File
@@ -24,7 +24,6 @@
#include "value_array.h" #include "value_array.h"
#include <mruby/throw.h> #include <mruby/throw.h>
#include <mruby/dump.h> #include <mruby/dump.h>
#include <mruby/presym.h>
#ifdef MRB_NO_STDIO #ifdef MRB_NO_STDIO
#if defined(__cplusplus) #if defined(__cplusplus)
+2 -2
View File
@@ -13,8 +13,8 @@ MRuby.each_target do |build|
presym = build.presym presym = build.presym
include_dir = "#{build.build_dir}/include" include_dir = "#{build.build_dir}/include"
build.compilers.each{|c| c.include_paths << include_dir} build.compilers.each{|c| c.include_paths.unshift include_dir}
build.gems.each{|gem| gem.compilers.each{|c| c.include_paths << include_dir}} build.gems.each{|gem| gem.compilers.each{|c| c.include_paths.unshift include_dir}}
prereqs = {} prereqs = {}
pps = [] pps = []