summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog4
-rw-r--r--ext/dl/lib/dl/func.rb4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e529cae52f7..d7647c54d90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 3 15:53:20 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.
+
Tue Mar 3 15:40:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/dl.c (rb_dl_init_callbacks): autoloads callbacks.
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)