diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/lib/dl/func.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/func.rb b/ext/dl/lib/dl/func.rb index 3c2245f413..3e82dcde20 100644 --- a/ext/dl/lib/dl/func.rb +++ b/ext/dl/lib/dl/func.rb @@ -86,6 +86,8 @@ module DL @block.call(*args) end }.new(@cfunc.ctype, @args, block) + @ptr = @cfunc + return nil else if( !block ) raise(RuntimeError, "block must be given.") |