From e4025170df05ffc37ca92cd4f4ff8df40e9b7781 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@5696 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/refcount.i | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SWIG/Examples/test-suite/refcount.i b/SWIG/Examples/test-suite/refcount.i index f9e69e787..0413e0eda 100644 --- a/SWIG/Examples/test-suite/refcount.i +++ b/SWIG/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);