mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Introduce Primitive.attr! to annotate 'inline' (#3242)
[Feature #15589]
This commit is contained in:
parent
d95249ade3
commit
7561db8c00
Notes:
git
2020-06-21 09:13:27 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>
7 changed files with 74 additions and 2 deletions
|
@ -4,6 +4,7 @@ class Integer
|
|||
#
|
||||
# Returns +true+ if +num+ has a zero value.
|
||||
def zero?
|
||||
Primitive.attr! 'inline'
|
||||
Primitive.cexpr! 'int_zero_p(self)'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue