Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SWIG_AsVal_float (PyObject * obj, float *val)
- {
- double v;
- int res = SWIG_AsVal_double (obj, &v);
- if (SWIG_IsOK(res)) {
- if (SWIG_Float_Overflow_Check(v)) {
- return SWIG_OverflowError;
- } else {
- if (val) *val = static_cast< float >(v);
- }
- }
- return res;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement