////////////////////////////////////////////////////////////////////////////////
//define SWIG types, so typemapping works
//todo: need to make this platform independent
////////////////////////////////////////////////////////////////////////////////
%apply long long{ int64_t };
%apply unsigned long long{ uint64_t };
%apply long { int32_t };
%apply unsigned long { uint32_t };
%apply unsigned char { uint8_t };
%apply double { float_t };


////////////////////////////////////////////////////////////////////////////////
//the string free - used when a function is set with %newobject
//it then deletes the string, because the function is return a new string
//and it has aleady been copied into csharp
%typemap(newfree) const TCHAR*, TCHAR * "_CLDELETE_CARRAY($1);";
%typemap(newfree) const char*, char * "_CLDELETE_CaARRAY($1);";

%include local_typemap.i //language specific stuff

