CYCLUS
Loading...
Searching...
No Matches
eventhooks.cc_api.h
Go to the documentation of this file.
1/* Generated by Cython 3.0.11 */
2
3#ifndef __PYX_HAVE_API__eventhooks
4#define __PYX_HAVE_API__eventhooks
5#ifdef __MINGW64__
6#define MS_WIN64
7#endif
8#include "Python.h"
9#include "eventhooks.cc.h"
10
12#define eventloophook __pyx_api_f_10eventhooks_eventloophook
13#ifndef __PYX_HAVE_RT_ImportFunction_3_0_11
14#define __PYX_HAVE_RT_ImportFunction_3_0_11
15static int __Pyx_ImportFunction_3_0_11(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
16 PyObject *d = 0;
17 PyObject *cobj = 0;
18 union {
19 void (*fp)(void);
20 void *p;
21 } tmp;
22 d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
23 if (!d)
24 goto bad;
25 cobj = PyDict_GetItemString(d, funcname);
26 if (!cobj) {
27 PyErr_Format(PyExc_ImportError,
28 "%.200s does not export expected C function %.200s",
29 PyModule_GetName(module), funcname);
30 goto bad;
31 }
32 if (!PyCapsule_IsValid(cobj, sig)) {
33 PyErr_Format(PyExc_TypeError,
34 "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
35 PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
36 goto bad;
37 }
38 tmp.p = PyCapsule_GetPointer(cobj, sig);
39 *f = tmp.fp;
40 if (!(*f))
41 goto bad;
42 Py_DECREF(d);
43 return 0;
44bad:
45 Py_XDECREF(d);
46 return -1;
47}
48#endif
49
50
51static int import_eventhooks(void) {
52 PyObject *module = 0;
53 module = PyImport_ImportModule("eventhooks");
54 if (!module) goto bad;
55 if (__Pyx_ImportFunction_3_0_11(module, "eventloophook", (void (**)(void))&__pyx_api_f_10eventhooks_eventloophook, "void (void)") < 0) goto bad;
56 Py_DECREF(module); module = 0;
57 return 0;
58 bad:
59 Py_XDECREF(module);
60 return -1;
61}
62
63#endif /* !__PYX_HAVE_API__eventhooks */
static int import_eventhooks(void)
static int __Pyx_ImportFunction_3_0_11(PyObject *module, const char *funcname, void(**f)(void), const char *sig)
static void(* __pyx_api_f_10eventhooks_eventloophook)(void)=0