swig/Examples/test-suite/php_namewarn_rename.i
Olly Betts abcff1089d Fix 2 of the 3 warnings under PHP (the remaining one doesn't seem to respond
to %warnfilter as I'd expect...)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 13:56:50 +00:00

23 lines
337 B
OpenEdge ABL

%module php_namewarn_rename
#ifdef SWIGPHP
%warnfilter(SWIGWARN_PARSE_KEYWORD) Empty();
// FIXME: this doesn't work for me:
%warnfilter(SWIGWARN_PARSE_KEYWORD) stdClass;
%warnfilter(SWIGWARN_PARSE_KEYWORD) Hello::empty();
#endif
%inline %{
void Empty() {}
class stdClass
{
};
struct Hello
{
void empty() {}
};
%}