summaryrefslogtreecommitdiff
path: root/ext/dl
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
commit95189045d06ab1ff40b023dfb69552f20957e3a0 (patch)
treeced328aa3c48591441b5bcbbf7aa202ce3206393 /ext/dl
parent1001173ccd68f728d28cf7fb8752326bc3ddf3eb (diff)
* ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-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 b29aebcc8bb..97f24a68d04 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)