mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-135906: Test the internal C API in test_cext (#136247)
Remove duplicated definition: atexit_datacallbackfunc type is already defined by Include/cpython/pylifecycle.h.
This commit is contained in:
parent
cbf007beeb
commit
2c9a8011c6
7 changed files with 103 additions and 36 deletions
|
|
@ -6,8 +6,17 @@
|
|||
// Always enable assertions
|
||||
#undef NDEBUG
|
||||
|
||||
#ifdef TEST_INTERNAL_C_API
|
||||
# define Py_BUILD_CORE 1
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef TEST_INTERNAL_C_API
|
||||
// gh-135906: Check for compiler warnings in the internal C API
|
||||
# include "internal/pycore_frame.h"
|
||||
#endif
|
||||
|
||||
#ifndef MODULE_NAME
|
||||
# error "MODULE_NAME macro must be defined"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue