more examples, and fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-18 02:08:55 +00:00
commit 50b87f398b
17 changed files with 123 additions and 28 deletions

View file

@ -4,7 +4,10 @@
%typemap(default) double y "$1=1000;";
#endif
#pragma SWIG nowarn=-302
%warnfilter(302) Foo::test;
%extend Foo {
int test() { return 0; }
int test(int x) { x = 0; return 1; }