Implement SWIG_From_long

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12554 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2011-03-24 09:57:21 +00:00
commit f209d5a409

View file

@ -133,10 +133,15 @@ SWIGINTERN int SWIG_AsVal_dec(long)(int iPos, long* val)
}
%fragment(SWIG_From_frag(long),"header") {
SWIGINTERNINLINE int SWIG_From_dec(long) (long value)
SWIGINTERNINLINE int SWIG_From_dec(long) (long value)
{
double dblValue = (double) value;
if (createScalarDouble(pvApiCtx, Rhs + 1, dblValue) == 0)
{
return 0;
return SWIG_OK;
}
return SWIG_ERROR;
}
}
/*%fragment(SWIG_AsPtr_frag(std::string),"header") {