diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/dl/lib/dl/func.rb | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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 b29aebcc8b..97f24a68d0 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) |