diff options
author | 卜部昌平 <[email protected]> | 2020-05-10 18:47:03 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-05-11 11:07:37 +0900 |
commit | 534277fa7b3b8aa7c25db51af0c1b32e7dfa6139 (patch) | |
tree | aa54214410cedd8abf584c7dffe1bfa7886023f7 /vm_core.h | |
parent | 9e41a75255d15765648279629fd3134cae076398 (diff) |
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]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3098
Diffstat (limited to 'vm_core.h')
0 files changed, 0 insertions, 0 deletions