[ruby] check whether object is of RTypedData using RTYPEDDATA_P.
This commit is contained in:
parent
207d9591f9
commit
ff9e9f9f98
4 changed files with 30 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ CPP_TEST_CASES = \
|
|||
ruby_keywords \
|
||||
ruby_minherit_shared_ptr \
|
||||
ruby_naming \
|
||||
ruby_rdata \
|
||||
ruby_track_objects \
|
||||
ruby_track_objects_directors \
|
||||
std_containers \
|
||||
|
|
|
|||
7
Examples/test-suite/ruby/ruby_rdata_runme.rb
Normal file
7
Examples/test-suite/ruby/ruby_rdata_runme.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require 'swig_assert'
|
||||
require 'ruby_rdata'
|
||||
|
||||
include Ruby_rdata
|
||||
|
||||
swig_assert_equal_simple(1, take_proc_or_cpp_obj_and_ret_1(Proc.new{}))
|
||||
swig_assert_equal_simple(1, take_proc_or_cpp_obj_and_ret_1(C.new))
|
||||
Loading…
Add table
Add a link
Reference in a new issue