Skip to content

Commit

Permalink
Merge pull request ffi#73 from sunaku/master
Browse files Browse the repository at this point in the history
better error reporting for eval()
  • Loading branch information
vp-of-awesome committed May 7, 2011
2 parents c13fbe3 + 54f6f98 commit de3923e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi/tools/generator.rb
Expand Up @@ -16,7 +16,7 @@ def initialize(ffi_name, rb_name, options = {})
indent = $1
original_lines = $2.count "\n"

instance_eval $2
instance_eval $2, @ffi_name, $`.count("\n")

new_lines = []
@constants.each { |c| new_lines << c.to_ruby }
Expand Down

0 comments on commit de3923e

Please sign in to comment.