diff options
| author | dearblue <[email protected]> | 2019-04-27 22:29:20 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2019-04-27 22:29:20 +0900 |
| commit | 828a99894179e858b4ddda4ba686413b56f986de (patch) | |
| tree | 0f47c4137cad0281c6689ab37cb4b06bc6d64288 /doc | |
| parent | b57f61ac95254cdd9becf8aab1e4e15bae404564 (diff) | |
| download | mruby-828a99894179e858b4ddda4ba686413b56f986de.tar.gz mruby-828a99894179e858b4ddda4ba686413b56f986de.zip | |
Update document for `MRB_USE_CUSTOM_RO_DATA_P`
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guides/mrbconf.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/guides/mrbconf.md b/doc/guides/mrbconf.md index 4e3a81aa3..3c20b3388 100644 --- a/doc/guides/mrbconf.md +++ b/doc/guides/mrbconf.md @@ -146,6 +146,13 @@ largest value of required alignment. * Uses `_etext` and `_edata`. * It must be `_etext < data_addr < _edata`. +`MRB_USE_CUSTOM_RO_DATA_P` +* Takes precedence over `MRB_USE_ETEXT_EDATA`. +* Please try if both `MRB_USE_ETEXT_EDATA` and `MRB_NO_INIT_ARRAY_START` are not available. +* The `mrb_ro_data_p()` function is implemented by the user in an arbitrary file. +* The prototype declaration is `mrb_bool mrb_ro_data_p(const char *ptr)`. +* Return `TRUE` if `ptr` is in read-only section, otherwise return `FALSE`. + ## Other configuration. `MRB_UTF8_STRING` * Adds UTF-8 encoding support to character-oriented String instance methods. |
