python.cfg: Add Py_RETURN_* macros to reduce missingReturn false positives in daca@home
This commit is contained in:
parent
928efe77fc
commit
2a8b4ae7dc
|
@ -1,5 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<def format="2">
|
||||
<define name="Py_RETURN_FALSE" value="return Py_INCREF(Py_False), Py_False"/>
|
||||
<define name="Py_RETURN_NONE" value="return Py_INCREF(Py_None), Py_None"/>
|
||||
<define name="Py_RETURN_TRUE" value="return Py_INCREF(Py_True), Py_True"/>
|
||||
|
||||
<!-- Python C API. see https://docs.python.org/2/c-api/index.html -->
|
||||
<!-- ########## Python C API Types ########## -->
|
||||
<define name="PY_LONG_LONG" value="long long"/>
|
||||
|
|
Loading…
Reference in New Issue