Skip to content

Commit ba96783

Browse files
AndLLAwsfulton
authored andcommitted
enable li_boost_shared_ptr in r-test-suite
1 parent b15e058 commit ba96783

File tree

4 files changed

+681
-2
lines changed

4 files changed

+681
-2
lines changed

Examples/test-suite/li_boost_shared_ptr.i

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
# define SWIG_SHARED_PTR_NAMESPACE SwigBoost
4545
#endif
4646

47-
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON) || defined(SWIGD) || defined(SWIGOCTAVE) || defined(SWIGRUBY)
47+
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON) || defined(SWIGD) || defined(SWIGOCTAVE) || defined(SWIGRUBY) || defined(SWIGR)
4848
#define SHARED_PTR_WRAPPERS_IMPLEMENTED
4949
#endif
5050

@@ -268,6 +268,7 @@ long use_count(const SwigBoost::shared_ptr<KlassDerived>& sptr) {
268268
long use_count(const SwigBoost::shared_ptr<Klass>& sptr) {
269269
return sptr.use_count();
270270
}
271+
271272
const SwigBoost::shared_ptr<Klass>& ref_1() {
272273
static SwigBoost::shared_ptr<Klass> sptr;
273274
return sptr;

Examples/test-suite/r/Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ CPP_TEST_CASES += \
2525
r_overload_array \
2626
r_sexp \
2727
r_overload_comma \
28-
r_use_isnull
28+
r_use_isnull \
29+
li_boost_shared_ptr
2930

3031
# These tests are failing because enums currently cannot handle
3132
# arithmetic expressions

0 commit comments

Comments
 (0)