summaryrefslogtreecommitdiffstats
path: root/venv/Include/site/python3.9/pygame/pgimport.h
blob: 34654c9e661aa26cebad048ed29a493436dea345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 */