python.cfg: Add Py_RETURN_* macros to reduce missingReturn false positives in daca@home

This commit is contained in:
Daniel Marjamäki 2021-09-04 21:06:54 +02:00
parent 928efe77fc
commit 2a8b4ae7dc
1 changed files with 4 additions and 0 deletions

View File

@ -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"/>