cpython: daa1ab27b5c2 (original) (raw)

--- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -65,6 +65,45 @@ test_config(PyObject self) } static PyObject +test_sizeof_c_types(PyObject *self) +{ +#define CHECK_SIZEOF(EXPECTED, TYPE) [](#l1.9)

+

+#ifdef HAVE_INT32_T

+#endif +#ifdef HAVE_UINT32_T

+#endif +#ifdef HAVE_INT64_T

+#endif +#ifdef HAVE_UINT64_T

+#endif +

+

+ +#undef CHECK_SIZEOF +} + + +static PyObject* test_list_api(PyObject self) { PyObject list; @@ -2783,6 +2822,7 @@ static PyMethodDef TestMethods[] = { {"raise_exception", raise_exception, METH_VARARGS}, {"raise_memoryerror", (PyCFunction)raise_memoryerror, METH_NOARGS}, {"test_config", (PyCFunction)test_config, METH_NOARGS},