summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/func.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/lib/dl/func.rb')
-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)