diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-08-25 16:37:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-08-26 16:06:01 +0900 |
| commit | e9c6e52f5b8aa42cb4a8d67d5a98ee8daf74e997 (patch) | |
| tree | f7d6bb62faa7bed51b632725d9b6fddef5f55831 /include/mrbconf.h | |
| parent | d00ae8d1666ae466a24b56ef35f18b4d66e80c62 (diff) | |
| download | mruby-e9c6e52f5b8aa42cb4a8d67d5a98ee8daf74e997.tar.gz mruby-e9c6e52f5b8aa42cb4a8d67d5a98ee8daf74e997.zip | |
value.h: reconstruct `mrb_ro_data_p()`.
* use predefined `mrb_ro_data_p()` for user-mode Linux and macOS
* define `MRB_LINK_TIME_RO_DATA_P` if predefined one is used
* configure macro `MRB_USE_LINK_TIME_RO_DATA_P` is no longer used
* contributions for new platforms are welcome
Diffstat (limited to 'include/mrbconf.h')
| -rw-r--r-- | include/mrbconf.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h index 7b29cb0ba..eda158d5e 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -113,11 +113,7 @@ /* number of object per heap page */ //#define MRB_HEAP_PAGE_SIZE 1024 -/* if __ehdr_start is available, mruby can reduce memory used by symbols */ -//#define MRB_USE_LINK_TIME_RO_DATA_P - -/* if MRB_USE_LINK_TIME_RO_DATA_P does not work, - you can try mrb_ro_data_p() that you have implemented yourself in any file; +/* you can provide and use mrb_ro_data_p() for your platform. prototype is `mrb_bool mrb_ro_data_p(const char *ptr)` */ //#define MRB_USE_CUSTOM_RO_DATA_P |
