scilab: fix li_boost_shared_ptr test
This commit is contained in:
parent
35ff88709e
commit
c238e9e62c
1 changed files with 24 additions and 10 deletions
|
|
@ -11,6 +11,16 @@
|
||||||
|
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK);
|
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK);
|
||||||
|
|
||||||
|
#if defined(SWIGSCILAB)
|
||||||
|
%rename(MbrVar) MemberVariables;
|
||||||
|
%rename(MbrVal) MemberVariables::MemberValue;
|
||||||
|
%rename(MbrPtr) MemberVariables::MemberPointer;
|
||||||
|
%rename(MbrRef) MemberVariables::MemberReference;
|
||||||
|
%rename(SmartMbrVal) MemberVariables::SmartMemberValue;
|
||||||
|
%rename(SmartMbrPtr) MemberVariables::SmartMemberPointer;
|
||||||
|
%rename(SmartMbrRef) MemberVariables::SmartMemberReference;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
#include "boost/shared_ptr.hpp"
|
#include "boost/shared_ptr.hpp"
|
||||||
#include "swig_examples_lock.h"
|
#include "swig_examples_lock.h"
|
||||||
|
|
@ -334,7 +344,11 @@ template <class T1, class T2> struct Base {
|
||||||
};
|
};
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
#if not defined(SWIGSCILAB)
|
||||||
%template(BaseIntDouble) Base<int, double>;
|
%template(BaseIntDouble) Base<int, double>;
|
||||||
|
#else
|
||||||
|
%template(BaseIDbl) Base<int, double>;
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
template <class T1, class T2> struct Pair : Base<T1, T2> {
|
template <class T1, class T2> struct Pair : Base<T1, T2> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue