summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-05-10 18:47:03 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 11:07:37 +0900
commit534277fa7b3b8aa7c25db51af0c1b32e7dfa6139 (patch)
treeaa54214410cedd8abf584c7dffe1bfa7886023f7 /vm_eval.c
parent9e41a75255d15765648279629fd3134cae076398 (diff)
downloadruby-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