.gitignore added
[dotfiles/.git] / .local / include / python3.9 / pygame / pgimport.h
diff --git a/.local/include/python3.9/pygame/pgimport.h b/.local/include/python3.9/pygame/pgimport.h
new file mode 100644 (file)
index 0000000..34654c9
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef PGIMPORT_INTERNAL_H
+#define PGIMPORT_INTERNAL_H
+
+#include "include/pgimport.h"
+
+#if PG_HAVE_CAPSULE
+#define encapsulate_api(ptr, module) \
+    PyCapsule_New(ptr, PG_CAPSULE_NAME(module), NULL)
+#else /* ~PG_HAVE_CAPSULE */
+#define encapsulate_api(ptr, module) PyCObject_FromVoidPtr(ptr, NULL)
+#endif /* ~PG_HAVE_CAPSULE */
+
+#endif /* PGIMPORT_INTERNAL_H */