summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-09-20 17:01:53 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-09-30 10:26:38 +0900
commitc11c5e69ac66ae10255a20a6b84e481f0423703d (patch)
tree2f627c134096d09e69fba834067605982b28cc44 /vm.c
parentcf336082039ae84b5001908f6bb7e04bdda8893e (diff)
refactor split rb_method_definition_set
Did you know that C functions can return structs? That has been true since the beginning, but not that very useful until C99. Now that we can write compound literals, this feature is much easier to use. By allowing struct-returning functions, some formerly big functions can be split into smaller ones, like this changeset. At least GCC is smart enough to inline the split functions back into one. No performance penalty is observed.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2486
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions