CYCLUS
Loading...
Searching...
No Matches
pymodule.cc.h
Go to the documentation of this file.
1/* Generated by Cython 3.0.11 */
2
3#ifndef __PYX_HAVE__pymodule
4#define __PYX_HAVE__pymodule
5
6#include "Python.h"
7
8#ifndef __PYX_HAVE_API__pymodule
9
10#ifdef CYTHON_EXTERN_C
11 #undef __PYX_EXTERN_C
12 #define __PYX_EXTERN_C CYTHON_EXTERN_C
13#elif defined(__PYX_EXTERN_C)
14 #ifdef _MSC_VER
15 #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
16 #else
17 #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
18 #endif
19#else
20 #define __PYX_EXTERN_C extern "C++"
21#endif
22
23#ifndef DL_IMPORT
24 #define DL_IMPORT(_T) _T
25#endif
26
27__PYX_EXTERN_C std::string CyclusPyFindModule(std::string);
28__PYX_EXTERN_C cyclus::Agent *CyclusMakePyAgent(std::string, std::string, void *);
33
34#endif /* !__PYX_HAVE_API__pymodule */
35
36/* WARNING: the interface of the module init function changed in CPython 3.5. */
37/* It now returns a PyModuleDef instance instead of a PyModule instance. */
38
39#if PY_MAJOR_VERSION < 3
40PyMODINIT_FUNC initpymodule(void);
41#else
42/* WARNING: Use PyImport_AppendInittab("pymodule", PyInit_pymodule) instead of calling PyInit_pymodule directly from Python 3.5 */
43PyMODINIT_FUNC PyInit_pymodule(void);
44
45#if PY_VERSION_HEX >= 0x03050000 && (defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) || (defined(__cplusplus) && __cplusplus >= 201402L))
46#if defined(__cplusplus) && __cplusplus >= 201402L
47[[deprecated("Use PyImport_AppendInittab(\"pymodule\", PyInit_pymodule) instead of calling PyInit_pymodule directly.")]] inline
48#elif defined(__GNUC__) || defined(__clang__)
49__attribute__ ((__deprecated__("Use PyImport_AppendInittab(\"pymodule\", PyInit_pymodule) instead of calling PyInit_pymodule directly."), __unused__)) __inline__
50#elif defined(_MSC_VER)
51__declspec(deprecated("Use PyImport_AppendInittab(\"pymodule\", PyInit_pymodule) instead of calling PyInit_pymodule directly.")) __inline
52#endif
53static PyObject* __PYX_WARN_IF_PyInit_pymodule_INIT_CALLED(PyObject* res) {
54 return res;
55}
56#define PyInit_pymodule() __PYX_WARN_IF_PyInit_pymodule_INIT_CALLED(PyInit_pymodule())
57#endif
58#endif
59
60#endif /* !__PYX_HAVE__pymodule */
The abstract base class used by all types of agents that live and interact in a simulation.
Definition agent.h:49
#define __PYX_EXTERN_C
Definition pymodule.cc.h:20
__PYX_EXTERN_C void CyclusPyCallListeners(std::string, cyclus::Agent *, void *, int, boost::spirit::hold_any)
PyMODINIT_FUNC initpymodule(void)
__PYX_EXTERN_C std::string CyclusPyFindModule(std::string)
__PYX_EXTERN_C cyclus::Agent * CyclusMakePyAgent(std::string, std::string, void *)
__PYX_EXTERN_C void CyclusClearPyAgentRefs(void)
__PYX_EXTERN_C void CyclusInitFromPyAgent(cyclus::Agent *, cyclus::Agent *, void *)
__PYX_EXTERN_C void CyclusPyDelAgent(int)