Skip to content

Commit 22464eb

Browse files
committed
Add Py_mod_abi
1 parent 597652b commit 22464eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Modules/xxlimited.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,14 @@ xx_free(void *module)
560560
(void)xx_clear((PyObject *)module);
561561
}
562562

563+
// Information that CPython uses to prevent loading incompatible extenstions
564+
PyABIInfo_VAR(abi_info);
565+
563566
static PyModuleDef_Slot xx_slots[] = {
564567
/* Basic metadata */
565568
{Py_mod_name, "xxlimited"},
566569
{Py_mod_doc, (void*)module_doc},
570+
{Py_mod_abi, &abi_info},
567571

568572
/* The method table */
569573
{Py_mod_methods, xx_methods},

0 commit comments

Comments
 (0)