diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-09 11:07:19 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-09 11:07:19 +0900 |
| commit | 5dd8b04d91023dd2330833e141614f90f51d78e9 (patch) | |
| tree | 01bc2c00fa16be5a799b43416ca21137de1f9425 | |
| parent | a503484cb3955509c2cbe5d0772974bf1fa83992 (diff) | |
| download | mruby-5dd8b04d91023dd2330833e141614f90f51d78e9.tar.gz mruby-5dd8b04d91023dd2330833e141614f90f51d78e9.zip | |
load.c: no need for conditional compilation; #5547
`mrb_ro_data_p()` is available anyway.
| -rw-r--r-- | src/load.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/load.c b/src/load.c index 15efa3c5b..256dd58fd 100644 --- a/src/load.c +++ b/src/load.c @@ -606,12 +606,7 @@ read_irep(mrb_state *mrb, const uint8_t *bin, size_t bufsize, uint8_t flags) static struct RProc* mrb_proc_read_irep(mrb_state *mrb, const uint8_t *bin) { - /* MRB_LINK_TIME_RO_DATA_P is defined when predefined mrb_ro_data_p() is used */ -#if defined(MRB_LINK_TIME_RO_DATA_P) || defined(MRB_USE_CUSTOM_RO_DATA_P) uint8_t flags = mrb_ro_data_p((char*)bin) ? FLAG_SRC_STATIC : FLAG_SRC_MALLOC; -#else - uint8_t flags = FLAG_SRC_STATIC; -#endif return read_irep(mrb, bin, (size_t)-1, flags); } |
