3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 11:13:46 +01:00
This commit is contained in:
Igor Krivenko 2014-09-16 17:26:11 +02:00 committed by Olivier Parcollet
parent 41caa7ab91
commit ef3c199795

View File

@ -954,8 +954,9 @@ static PyObject * ${c.py_type}_${op_name} (PyObject* v, PyObject *w){
CATCH_AND_RETURN("in calling C++ overload \n ${overload._get_c_signature()} \nin implementation of operator ${overload._get_calling_pattern()} ", NULL)
}
%endfor
PyErr_SetString(PyExc_RuntimeError,"Error: no C++ overload found in implementation of operator ${overload._get_calling_pattern()} ");
return NULL;
//PyErr_SetString(PyExc_RuntimeError,"Error: no C++ overload found in implementation of operator ${overload._get_calling_pattern()} ");
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
%elif op.arity == 1:
@ -970,8 +971,9 @@ static PyObject * ${c.py_type}_${op_name} (PyObject *v){
CATCH_AND_RETURN("in calling C++ overload \n ${overload._get_c_signature()} \nin implementation of operator ${overload._get_calling_pattern()} ", NULL)
}
%endfor
PyErr_SetString(PyExc_RuntimeError,"Error: no C++ overload found in implementation of operator ${overload._get_calling_pattern()} ");
return NULL;
//PyErr_SetString(PyExc_RuntimeError,"Error: no C++ overload found in implementation of operator ${overload._get_calling_pattern()} ");
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
%endif