diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2009-11-03 19:14:37 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2009-11-03 19:14:37 +0000 |
commit | da1fc3ab8f30e097f17a056db023b099b383c68c (patch) | |
tree | 76e68fbb5a3e948a3333991000c73cca94a40888 /Examples/test-suite/using_namespace.i | |
parent | 70e8072612c4f1229b11047fca8f2141dd664ba5 (diff) | |
download | swig-da1fc3ab8f30e097f17a056db023b099b383c68c.tar.gz |
Fix some usage of global scope operator ::
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/using_namespace.i')
-rw-r--r-- | Examples/test-suite/using_namespace.i | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Examples/test-suite/using_namespace.i b/Examples/test-suite/using_namespace.i index 799c7cfb5..ce02e9a87 100644 --- a/Examples/test-suite/using_namespace.i +++ b/Examples/test-suite/using_namespace.i @@ -74,3 +74,14 @@ struct X { }; } + +%inline %{ +namespace SpaceMan { + typedef double SpaceManDouble; +} +using namespace ::SpaceMan; // global namespace prefix + +SpaceManDouble useSpaceMan(SpaceManDouble s) { return s; } + +%} + |