mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] Add Modules/_testcapi/util.h header (GH-108774) (#108780)
Add Modules/_testcapi/util.h header (GH-108774)
It contains common macros used in C API tests.
(cherry picked from commit 0e01fac315
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
f58617a3bc
commit
ba7e06bb63
7 changed files with 49 additions and 94 deletions
|
@ -1,8 +1,8 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "parts.h"
|
||||
#include "util.h"
|
||||
#include "clinic/exceptions.c.h"
|
||||
|
||||
#define NULLABLE(x) do { if (x == Py_None) x = NULL; } while (0);
|
||||
|
||||
/*[clinic input]
|
||||
module _testcapi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue