git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-06-18 08:04:30 +00:00
commit 45fb27f977
3 changed files with 55 additions and 28 deletions

View file

@ -138,6 +138,7 @@ CPP_TEST_CASES += \
extend_placement \
extend_template \
extend_template_ns \
extern_namespace \
extern_throws \
features \
friends \

View file

@ -0,0 +1,23 @@
%module extern_namespace
%inline %{
namespace foo {
extern int bar(int blah = 1);
};
extern "C" int foobar(int i) {
return i;
}
%}
%{
int foo::bar(int blah) {
return blah;
}
%}