From c856fbdde15ccd14a40cefc71f45736f59a1e020 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 2 Feb 2004 21:11:28 +0000 Subject: [PATCH] added another simple method git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5696 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/refcount.i | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Examples/test-suite/refcount.i b/Examples/test-suite/refcount.i index f9e69e787..0413e0eda 100644 --- a/Examples/test-suite/refcount.i +++ b/Examples/test-suite/refcount.i @@ -39,7 +39,7 @@ RefCount(B); %include "refcount.h" -%newobject B::create(); +%newobject B::create(A* a); %newobject B::cloner(); %inline %{ @@ -77,6 +77,11 @@ RefCount(B); { B(A* a) : _a(a) {} + A* get_a() + { + return _a; + } + static B* create(A* a) { return new B(a);