swig/SWIG/Examples/test-suite/ret_by_value.i
Marcelo Matus 3634df5e12 add support for named warning codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 11:42:24 +00:00

19 lines
302 B
OpenEdge ABL

/* Simple test to check SWIG's handling of return by value */
%module ret_by_value
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) test; /* Ruby, wrong class name */
%inline %{
typedef struct {
int myInt;
short myShort;
} test;
test get_test() {
test myTest = {100, 200};
return myTest;
}
%}