git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
13 lines
198 B
Ruby
13 lines
198 B
Ruby
require 'smart_pointer_const'
|
|
|
|
include Smart_pointer_const
|
|
|
|
f = Foo.new
|
|
b = Bar.new(f)
|
|
|
|
b.x = 3
|
|
raise RuntimeError if b.getx() != 3
|
|
|
|
fp = b.__deref__()
|
|
fp.x = 4
|
|
raise RuntimeError if fp.getx() != 4
|
|
|