MAINT declare module_init functions in TRY_INIT macros (#2437)

This commit is contained in:
Hood Chatham 2022-05-02 06:22:53 -07:00 committed by GitHub
parent 3f9ae2ed1e
commit 80a650cc33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#define TRY_INIT(mod) \
do { \
int mod##_init(); \
if (mod##_init()) { \
FATAL_ERROR("Failed to initialize module %s.", #mod); \
} \
@ -40,6 +41,7 @@
#define TRY_INIT_WITH_CORE_MODULE(mod) \
do { \
int mod##_init(PyObject* mod); \
if (mod##_init(core_module)) { \
FATAL_ERROR("Failed to initialize module %s.", #mod); \
} \