[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:
Miss Islington (bot) 2023-09-02 14:43:14 -07:00 committed by GitHub
parent f58617a3bc
commit ba7e06bb63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 94 deletions

View file

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