diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-21 08:34:07 +0200 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-27 13:47:57 +0200 |
commit | e987ab50366a4b08617a20568eabdaa1fb761317 (patch) | |
tree | 0f10e6887c41ae27c0514ddd7c5b0d1b55a4f8ea /spec/ffi/function_spec.rb | |
parent | ad1a2e0cd5970e5d1618782a6ac2d5328811370d (diff) | |
download | ffi-e987ab50366a4b08617a20568eabdaa1fb761317.tar.gz |
Add the possibility to query attached funtions and variables
Diffstat (limited to 'spec/ffi/function_spec.rb')
-rw-r--r-- | spec/ffi/function_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ffi/function_spec.rb b/spec/ffi/function_spec.rb index 0d89a7d..badd240 100644 --- a/spec/ffi/function_spec.rb +++ b/spec/ffi/function_spec.rb @@ -64,7 +64,7 @@ describe FFI::Function do end it "should be usable with Ractor", :ractor do - res = Ractor.new(@conninfo) do |conninfo| + res = Ractor.new do function_add = FFI::Function.new(:int, [:int, :int]) { |a, b| a + b } LibTest.testFunctionAdd(10, 10, function_add) end.take |