swig/SWIG/Examples/test-suite/imports_a.h
Art Yerkes 01f438f143 Updated documentation.
Provide a swig_val function which generates a shareable value from a module
specific one in a painless way.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-17 08:38:54 +00:00

19 lines
557 B
C++

enum GlobalEnum { globalenum1=1, globalenum2 };
/* This function should be static as it will be emitted into the code for
* every module. All _static targets would fail here with a multiple
* definition if this is not static. */
static GlobalEnum global_test(GlobalEnum e) { return e; }
class A {
public:
A() {}
virtual ~A() {}
void hello() {}
enum MemberEnum { memberenum1=10, memberenum2 };
virtual MemberEnum member_virtual_test(MemberEnum e) { return e; }
virtual GlobalEnum global_virtual_test(GlobalEnum e) { return e; }
};