diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-23 16:32:16 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-23 16:32:16 +0100 |
commit | 6c2a551257b31c372d4e34644b9d511b8a6278c8 (patch) | |
tree | 204bada900515a70c0ce5c4fbb119678101fec22 /tools | |
parent | 41cb58308c9454f4e8ecbe73fc83addec9237d84 (diff) | |
download | ffi-efl-6c2a551257b31c372d4e34644b9d511b8a6278c8.zip ffi-efl-6c2a551257b31c372d4e34644b9d511b8a6278c8.tar.gz |
tools/genruby: use eval to compute enum item values
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/genruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb index 77a4fb1..2315da0 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -171,7 +171,7 @@ def gen_enums path, indent i+=1 else h[s]=v - i=v.to_i+1 + i=eval(v).to_i+1 end end args = syms.inject(''){|r,s| r+=":#{s.strip.downcase}, #{h[s]}, " }.sub(/, $/,'') |