tcl long long overloading fix - bug #1191835, patch from Jeroen Dobbelaere
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6e4f04b393
commit
b417ef575e
2 changed files with 16 additions and 2 deletions
|
|
@ -108,6 +108,13 @@ static char *bar(void *) {
|
|||
};
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
void ull() {}
|
||||
void ull(unsigned long long ull) {}
|
||||
void ll() {}
|
||||
void ll(long long ull) {}
|
||||
%}
|
||||
|
||||
%include cmalloc.i
|
||||
%malloc(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -481,10 +481,8 @@
|
|||
int, short, long,
|
||||
unsigned int, unsigned short, unsigned long,
|
||||
signed char, unsigned char,
|
||||
long long, unsigned long long,
|
||||
const int &, const short &, const long &,
|
||||
const unsigned int &, const unsigned short &, const unsigned long &,
|
||||
const long long &, const unsigned long long &,
|
||||
enum SWIGTYPE, const enum SWIGTYPE &,
|
||||
bool, const bool &
|
||||
{
|
||||
|
|
@ -493,6 +491,15 @@
|
|||
else $1 = 1;
|
||||
}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_INTEGER)
|
||||
long long, unsigned long long,
|
||||
const long long &, const unsigned long long &
|
||||
{
|
||||
Tcl_WideInt tmp;
|
||||
if (Tcl_GetWideIntFromObj(NULL,$input,&tmp) == TCL_ERROR) $1 = 0;
|
||||
else $1 = 1;
|
||||
}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_DOUBLE)
|
||||
float, double,
|
||||
const float &, const double &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue