Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:06:50

0001 
0002 /* Interfaces to parse and execute pieces of python code */
0003 
0004 #ifndef Py_PYTHONRUN_H
0005 #define Py_PYTHONRUN_H
0006 #ifdef __cplusplus
0007 extern "C" {
0008 #endif
0009 
0010 PyAPI_FUNC(PyObject *) Py_CompileString(const char *, const char *, int);
0011 
0012 PyAPI_FUNC(void) PyErr_Print(void);
0013 PyAPI_FUNC(void) PyErr_PrintEx(int);
0014 PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);
0015 
0016 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000
0017 PyAPI_FUNC(void) PyErr_DisplayException(PyObject *);
0018 #endif
0019 
0020 
0021 /* Stuff with no proper home (yet) */
0022 PyAPI_DATA(int) (*PyOS_InputHook)(void);
0023 
0024 /* Stack size, in "pointers" (so we get extra safety margins
0025    on 64-bit platforms).  On a 32-bit platform, this translates
0026    to an 8k margin. */
0027 #define PYOS_STACK_MARGIN 2048
0028 
0029 #if defined(WIN32) && !defined(MS_WIN64) && !defined(_M_ARM) && defined(_MSC_VER) && _MSC_VER >= 1300
0030 /* Enable stack checking under Microsoft C */
0031 // When changing the platforms, ensure PyOS_CheckStack() docs are still correct
0032 #define USE_STACKCHECK
0033 #endif
0034 
0035 #ifdef USE_STACKCHECK
0036 /* Check that we aren't overflowing our stack */
0037 PyAPI_FUNC(int) PyOS_CheckStack(void);
0038 #endif
0039 
0040 #ifndef Py_LIMITED_API
0041 #  define Py_CPYTHON_PYTHONRUN_H
0042 #  include "cpython/pythonrun.h"
0043 #  undef Py_CPYTHON_PYTHONRUN_H
0044 #endif
0045 
0046 #ifdef __cplusplus
0047 }
0048 #endif
0049 #endif /* !Py_PYTHONRUN_H */