summaryrefslogtreecommitdiff
path: root/include/ruby/node.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 18:49:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 18:49:13 +0000
commit9ee7875162df5d55fcb56a36e39efa45894de6b3 (patch)
treec3e4f07434f20f0217eaf0eb8abdb9d1fd9d890f /include/ruby/node.h
parentfbc6ea6c95f8f8fd2d6f3e6adb49f13c7031860b (diff)
* include/ruby/ruby.h (NUM2LONG): make it inline function to evaluete
the argument only once. `t = Object.new; def t.*(x) p x; 0 end; p Time.at(0, t)' did print x twice. (NUM2INT): ditto. (NUM2LL): ditto. (INT2NUM): make it inline function. (LONG2NUM): ditto. (UINT2NUM): ditto. (ULONG2NUM): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/node.h')
0 files changed, 0 insertions, 0 deletions