summaryrefslogtreecommitdiff
path: root/tests/compile/nogil.h
blob: 42878109bc45ac4b228972db10e04e3c282dd0fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifdef __cplusplus
extern "C" {
#endif
extern DL_EXPORT(void) e1(void);
extern DL_EXPORT(int*) e2(void);
#ifdef __cplusplus
}
#endif

void e1(void) {return;}
int* e2(void) {return 0;}



#ifdef __cplusplus
extern "C" {
#endif
extern DL_EXPORT(PyObject *) g(PyObject*);
extern DL_EXPORT(void) g2(PyObject*);
#ifdef __cplusplus
}
#endif

PyObject *g(PyObject* o) {if (o) {}; return 0;}
void g2(PyObject* o) {if (o) {}; return;}