Unverified Commit 2b0135e8 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4408 from dearblue/my-ro_data_p

Add customized `mrb_ro_data_p()`
parents c0787586 302ad847
...@@ -278,7 +278,10 @@ mrb_undef_value(void) ...@@ -278,7 +278,10 @@ mrb_undef_value(void)
return v; return v;
} }
#ifdef MRB_USE_ETEXT_EDATA #if defined(MRB_USE_CUSTOM_RO_DATA_P)
/* If you define `MRB_USE_CUSTOM_RO_DATA_P`, you must implement `mrb_ro_data_p()`. */
mrb_bool mrb_ro_data_p(const char *p);
#elif defined(MRB_USE_ETEXT_EDATA)
#if (defined(__APPLE__) && defined(__MACH__)) #if (defined(__APPLE__) && defined(__MACH__))
#include <mach-o/getsect.h> #include <mach-o/getsect.h>
static inline mrb_bool static inline mrb_bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment