swig/Examples/test-suite/name.i
William S Fulton b3ddf4de72 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
2004-11-28 19:10:18 +00:00

28 lines
452 B
OpenEdge ABL

/* This interface file tests whether SWIG/Guile handle the %rename and
%name directives, which was not the case in 1.3a5.
*/
%module name
#pragma SWIG nowarn=121 // %name is deprecated. Use %rename instead.
#ifdef SWIGGUILE
%rename foo_1 "foo-2";
#else
%rename foo_1 "foo_2";
#endif
%inline %{
void foo_1() {}
%}
#ifdef SWIGGUILE
%name("bar-2")
#else
%name("bar_2")
#endif
%inline %{
int bar_1 = 17;
%}
%name("Baz_2")
%constant int Baz_1 = 47;