Minor rename in the 'smart_pointer_templatemethods' test-case to avoid special casing for D.
This is a part of the pending merge of the D module, where 'Object' is a keyword. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12296 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0fb77ce206
commit
4d09774cef
1 changed files with 6 additions and 7 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
%module smart_pointer_templatemethods
|
%module smart_pointer_templatemethods
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
@ -29,21 +28,21 @@ public:
|
||||||
void DisposeObjekt (void) {}
|
void DisposeObjekt (void) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class Object
|
class Objct
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Object () {}
|
Objct () {}
|
||||||
virtual ~Object () {}
|
virtual ~Objct () {}
|
||||||
template <typename T> Ptr<T> QueryInterface (InterfaceId iid) const { return Ptr<T>(); }
|
template <typename T> Ptr<T> QueryInterface (InterfaceId iid) const { return Ptr<T>(); }
|
||||||
void DisposeObject (void) {}
|
void DisposeObjct (void) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
%template(PtrObject) Ptr<Object>;
|
%template(PtrObjct) Ptr<Objct>;
|
||||||
%template(PtrInt) Ptr<int>;
|
%template(PtrInt) Ptr<int>;
|
||||||
%template(ObjektInt) Objekt<int>;
|
%template(ObjektInt) Objekt<int>;
|
||||||
%template(PtrObjektInt) Ptr<Objekt<int> >;
|
%template(PtrObjektInt) Ptr<Objekt<int> >;
|
||||||
%template(QueryInterfaceObject) Object::QueryInterface<Object>;
|
%template(QueryInterfaceObjct) Objct::QueryInterface<Objct>;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}; // namespace
|
}; // namespace
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue