mirror of https://github.com/swig/swig
20 lines
302 B
OpenEdge ABL
20 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;
|
|
}
|
|
|
|
%}
|