fix macro expansion issue reported by Andreas Held

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-13 08:55:06 +00:00
commit b748e6044a
2 changed files with 22 additions and 1 deletions

View file

@ -80,3 +80,24 @@ int test_func_ptr(Foo *f, int a) {
}
%}
%define MACRO_WINDOW_SHOW
void show(PyObject *count = 0, PyObject *data = 0)
{
return;
}
%enddef
%inline %{
class Fl_Window {
public:
Fl_Window() {};
~Fl_Window() {};
};
%}
%extend Fl_Window {
MACRO_WINDOW_SHOW
}