swig/Examples/test-suite/namespace_union.i
Dave Beazley 310cf74273 new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-26 19:56:45 +00:00

28 lines
1 KiB
OpenEdge ABL

%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
}
%}