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:
parent
247a179807
commit
f209d5a409
1 changed files with 7 additions and 2 deletions
|
|
@ -133,10 +133,15 @@ SWIGINTERN int SWIG_AsVal_dec(long)(int iPos, long* val)
|
||||||
}
|
}
|
||||||
|
|
||||||
%fragment(SWIG_From_frag(long),"header") {
|
%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") {
|
/*%fragment(SWIG_AsPtr_frag(std::string),"header") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue