summaryrefslogtreecommitdiffhomepage
path: root/include/mrbconf.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-04-27 23:18:18 +0900
committerGitHub <[email protected]>2019-04-27 23:18:18 +0900
commitb15293e709d8f3bf5ec8c3538960400cf25f0b6d (patch)
tree0f47c4137cad0281c6689ab37cb4b06bc6d64288 /include/mrbconf.h
parent6f779ceac23f1fb50dae0bea3eb734575f53294a (diff)
parent828a99894179e858b4ddda4ba686413b56f986de (diff)
downloadmruby-b15293e709d8f3bf5ec8c3538960400cf25f0b6d.tar.gz
mruby-b15293e709d8f3bf5ec8c3538960400cf25f0b6d.zip
Merge pull request #4410 from dearblue/update-docs
Update document for `MRB_USE_CUSTOM_RO_DATA_P` and some configurations
Diffstat (limited to 'include/mrbconf.h')
-rw-r--r--include/mrbconf.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h
index 08e69d3aa..6b0b9e37e 100644
--- a/include/mrbconf.h
+++ b/include/mrbconf.h
@@ -41,10 +41,15 @@
/* you might need to specify --falign-functions=n (where n>1) */
//#define MRB_METHOD_TABLE_INLINE
-/* add -DMRB_INT16 to use 16bit integer for mrb_int; conflict with MRB_INT64 */
+/* add -DMRB_INT16 to use 16bit integer for mrb_int; conflict with MRB_INT32 and MRB_INT64 */
//#define MRB_INT16
-/* add -DMRB_INT64 to use 64bit integer for mrb_int; conflict with MRB_INT16 */
+/* add -DMRB_INT32 to use 32bit integer for mrb_int; conflict with MRB_INT16 and MRB_INT64;
+ Default for 32-bit CPU mode. */
+//#define MRB_INT32
+
+/* add -DMRB_INT64 to use 64bit integer for mrb_int; conflict with MRB_INT16 and MRB_INT32;
+ Default for 64-bit CPU mode. */
//#define MRB_INT64
/* if no specific integer type is chosen */
@@ -88,6 +93,11 @@
effective only when MRB_USE_ETEXT_EDATA is defined */
//#define MRB_NO_INIT_ARRAY_START
+/* if do not works both MRB_USE_ETEXT_EDATA and MRB_NO_INIT_ARRAY_START,
+ you can try mrb_ro_data_p() that you have implemented yourself in any file;
+ prototype is `mrb_bool mrb_ro_data_p(const char *ptr)` */
+//#define MRB_USE_CUSTOM_RO_DATA_P
+
/* turn off generational GC by default */
//#define MRB_GC_TURN_OFF_GENERATIONAL