diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-05-10 18:47:03 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-05-11 11:07:37 +0900 |
commit | 534277fa7b3b8aa7c25db51af0c1b32e7dfa6139 (patch) | |
tree | aa54214410cedd8abf584c7dffe1bfa7886023f7 /vm_eval.c | |
parent | 9e41a75255d15765648279629fd3134cae076398 (diff) | |
download | ruby-534277fa7b3b8aa7c25db51af0c1b32e7dfa6139.tar.gz |
rb_str_new: hoist RB_CONSTANT_P out of function
https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html says:
> GCC never returns 1 when you call the inline function with a string
> constant or ...
Because rb_str_new and familiy take string constants, it was a bad idea
for them to contain RB_CONSTANT_P. We should instead do so in
corresponding macros. [ruby-core:98212]
Diffstat (limited to 'vm_eval.c')
0 files changed, 0 insertions, 0 deletions