Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/namespace_extend.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

35 lines
455 B
OpenEdge ABL

%module namespace_extend
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; /* Ruby, wrong class name */
%{
namespace foo {
class bar {
public:
};
}
foo::bar *new_foo_bar() {
return new foo::bar;
}
void delete_foo_bar(foo::bar *self) {
delete self;
}
int foo_bar_blah(foo::bar *self, int x) {
return x;
}
%}
namespace foo {
class bar {
public:
%extend {
bar();
~bar();
int blah(int x);
};
};
}