new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c779469a61
commit
310cf74273
4 changed files with 56 additions and 0 deletions
28
Examples/test-suite/namespace_union.i
Normal file
28
Examples/test-suite/namespace_union.i
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
%module namespace_union
|
||||
%inline %{
|
||||
namespace SpatialIndex
|
||||
{
|
||||
class Variant
|
||||
{
|
||||
public:
|
||||
Variant() { };
|
||||
int varType;
|
||||
union
|
||||
{
|
||||
long lVal; // VT_LONG
|
||||
short iVal; // VT_SHORT
|
||||
float fltVal; // VT_FLOAT
|
||||
double dblVal; // VT_DOUBLE
|
||||
char cVal; // VT_CHAR
|
||||
unsigned short uiVal; // VT_USHORT
|
||||
unsigned long ulVal; // VT_ULONG
|
||||
int intVal; // VT_INT
|
||||
unsigned int uintVal; // VT_UINT
|
||||
bool blVal; // VT_BOOL
|
||||
char* pcVal; // VT_PCHAR
|
||||
void* pvVal; // VT_PVOID
|
||||
} val;
|
||||
}; // Variant
|
||||
}
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue