swig/Examples/test-suite/allowexcept.i
William S Fulton 3e5ab0a5d2 add allowexcept feature test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8669 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-01 21:15:45 +00:00

31 lines
557 B
OpenEdge ABL

// Test the allowexcept feature by making the usual $action uncompileable and ensuring the %exception is picked up
%module allowexcept
struct XYZ {
};
%{
struct XYZ {
void foo() {}
private:
XYZ& operator=(const XYZ& other); // prevent assignment used in normally generated set method
XYZ* operator&(); // prevent dereferencing used in normally generated get method
};
%}
%exception {
/*
$action
*/
}
%feature("allowexcept");
%inline %{
XYZ global_variable;
struct ABC {
XYZ member_variable;
static XYZ static_member_variable;
};
%}