summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-03 06:54:00 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-03 06:54:00 +0000
commita9e3c9f519559da9c8add7f35791fbd3409d36b2 (patch)
treeced328aa3c48591441b5bcbbf7aa202ce3206393 /ext
parent878ce18f9f6a7ececb7b1654a59b472947d35228 (diff)
downloadruby-a9e3c9f519559da9c8add7f35791fbd3409d36b2.tar.gz
ruby-a9e3c9f519559da9c8add7f35791fbd3409d36b2.tar.xz
ruby-a9e3c9f519559da9c8add7f35791fbd3409d36b2.zip
* ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/lib/dl/func.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/func.rb b/ext/dl/lib/dl/func.rb
index b29aebcc8..97f24a68d 100644
--- a/ext/dl/lib/dl/func.rb
+++ b/ext/dl/lib/dl/func.rb
@@ -25,6 +25,10 @@ module DL
@cfunc.to_i
end
+ def name
+ @cfunc.name
+ end
+
def call(*args, &block)
funcs = []
args = wrap_args(args, @stack.types, funcs, &block)