deprecated %name warning suppression
name_inherit test moved into name_cxx git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a935d489b3
commit
b3ddf4de72
2 changed files with 17 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
%module name
|
||||
|
||||
#pragma SWIG nowarn=121 // %name is deprecated. Use %rename instead.
|
||||
|
||||
#ifdef SWIGGUILE
|
||||
%rename foo_1 "foo-2";
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
%module name_cxx
|
||||
|
||||
#pragma SWIG nowarn=121 // %name is deprecated. Use %rename instead.
|
||||
|
||||
%name("bar_int")
|
||||
%inline %{
|
||||
void bar(int i) {}
|
||||
|
|
@ -14,3 +16,16 @@ void bar(int i) {}
|
|||
void bar(double i) {}
|
||||
%}
|
||||
|
||||
// %name inheritance test
|
||||
%{
|
||||
class A {
|
||||
};
|
||||
|
||||
class B : public A {
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
%name(AA) class A { };
|
||||
class B : public A { };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue