diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-28 12:13:24 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-28 12:13:24 +0000 |
commit | 28001c849d8823c8bac79b9e53705cf247b99e65 (patch) | |
tree | 43f5dcab38628051ea6a1b1ccea7411bff878be3 /ext/dl/lib/dl/struct.rb | |
parent | 00cb692395f97ee180342be2f768e8e49b42c2f9 (diff) |
* ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename and
line number to module_eval'ing for readability of backtrace.
(DL::Importer#bind): ditto.
* ext/dl/lib/dl/struct.rb (DL::CStructBuilder#create): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib/dl/struct.rb')
-rw-r--r-- | ext/dl/lib/dl/struct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/lib/dl/struct.rb b/ext/dl/lib/dl/struct.rb index 4272b3960c..dc116f3be5 100644 --- a/ext/dl/lib/dl/struct.rb +++ b/ext/dl/lib/dl/struct.rb @@ -29,7 +29,7 @@ module DL } } size = klass.entity_class.size(types) - new_class.module_eval(<<-EOS) + new_class.module_eval(<<-EOS, __FILE__, __LINE__+1) def new_class.size() #{size} end |