HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PY_CPythonAPI.h File Reference
#include "PY_API.h"
#include <UT/UT_WorkBuffer.h>
#include <SYS/SYS_Types.h>
#include <SYS/SYS_Visibility.h>
#include <hboost/preprocessor/seq/for_each.hpp>
#include <hboost/preprocessor/seq/for_each_i.hpp>
#include <hboost/preprocessor/seq/seq.hpp>
#include <hboost/preprocessor/punctuation/comma_if.hpp>
#include <hboost/preprocessor/cat.hpp>
#include <hboost/preprocessor/stringize.hpp>
#include <patchlevel.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
+ Include dependency graph for PY_CPythonAPI.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PY_PyObject_HEAD_EXTRA
 
struct  PY_PyMethodDef
 
struct  PY_PyModuleDef_Slot
 
struct  PY_PyWideStringList
 
struct  PY_PyConfig
 
struct  PY_PyPreConfig
 
struct  PY_PyStatus
 

Macros

#define PY_FUNC_SEQ_Py_Main   ((Py_Main)(int)((int)(wchar_t **)))
 
#define PY_FUNC_SEQ_PySys_SetArgv   ((PySys_SetArgv)(void)((int)(wchar_t **)))
 
#define PY_FUNC_SEQ_PySys_SetArgvEx   ((PySys_SetArgvEx)(void)((int)(wchar_t **)(int)))
 
#define PY_WRAPPED_FUNCTIONS
 
#define PY_FUNC_PYSYS_ADDWARNOPTION   ((PySys_AddWarnOption)(void)((const wchar_t *)))
 
#define PY_WRAPPED_UNCHECKED_FUNCTIONS
 
#define PY_WRAPPED_MEMORY_FUNCTIONS
 
#define PY_WRAPPED_CONSTANTS
 
#define PY_FOR_EACH_SEQ_OF_2(macro, seq)   HBOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_2, macro, seq)
 
#define PY_CALLBACK_SEQ_OF_2(r, macro, seq)   macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq))
 
#define PY_FOR_EACH_SEQ_OF_3(macro, seq)   HBOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_3, macro, seq)
 
#define PY_CALLBACK_SEQ_OF_3(r, macro, seq)   macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq), PY_SEQ_ELEM_2(seq))
 
#define PY_SEQ_ELEM_0(seq)   HBOOST_PP_SEQ_HEAD(seq)
 
#define PY_SEQ_ELEM_1(seq)   HBOOST_PP_SEQ_HEAD(HBOOST_PP_SEQ_TAIL(seq))
 
#define PY_SEQ_ELEM_2(seq)   HBOOST_PP_SEQ_HEAD(HBOOST_PP_SEQ_TAIL(HBOOST_PP_SEQ_TAIL(seq)))
 
#define PY_MAKE_PARM_LIST(parm_types)   HBOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_PARM, _, parm_types)
 
#define PY_MAKE_PARM(r, unused_data, i, elem)   HBOOST_PP_COMMA_IF(i) elem HBOOST_PP_CAT(arg, i)
 
#define PY_MAKE_ARG_LIST(parm_types)   HBOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_ARG, _, parm_types)
 
#define PY_MAKE_ARG(r, unused_data, i, unused_elem)   HBOOST_PP_COMMA_IF(i) HBOOST_PP_CAT(arg, i)
 
#define PY_ADD_SUBCLASS_1(subclass, base_class, member1_type, member1_name)
 
#define PY_ADD_SUBCLASS_2(subclass, base_class, member1_type, member1_name, member2_type, member2_name)
 
#define PY_DECLARE_FUNCTION_FROM_SEQ(seq)   PY_CALLBACK_SEQ_OF_3(_, PY_DECLARE_FUNCTION, seq)
 
#define PY_DECLARE_FUNCTION(function_name, return_type, parm_types)
 
#define PY_DECLARE_WRAPPED_CONSTANT(constant_name, type)   PY_API type &HBOOST_PP_CAT(PY_, constant_name)();
 
#define PY_FUNC_SEQ_PyInt_AsLong   (PyInt_AsLong)(long)((PY_PyObject *))
 
#define PY_FUNC_SEQ_PyInt_FromLong   (PyInt_FromLong)(PY_PyObject *)((long))
 
#define PY_FUNC_SEQ_PyString_AsString   (PyString_AsString)(char *)((PY_PyObject *))
 
#define PY_FUNC_SEQ_PyString_AsStringAndSize   (PyString_AsStringAndSize)(int)((PY_PyObject *)(char **)(PY_Py_ssize_t *))
 
#define PY_FUNC_SEQ_PyString_FromString   (PyString_FromString)(PY_PyObject *)((const char *))
 
#define PY_FUNC_SEQ_PyString_FromStringAndSize   (PyString_FromStringAndSize)(PY_PyObject *)((const char *)(PY_Py_ssize_t))
 
#define PY_FUNC_SEQ_PyString_AsUTF8String   (PyString_AsUTF8String)(PY_PyObject *)((PY_PyObject *))
 
#define PY_FUNC_SEQ_PyBytes_AsStringAndSize
 
#define PY_FUNC_SEQ_PyCObject_GetDesc   (PyCObject_GetDesc)(void*)((PY_PyObject *))
 
#define PY_FUNC_SEQ_PyCObject_AsVoidPtr   (PyCObject_AsVoidPtr)(void*)((PY_PyObject *))
 
#define PY_FUNC_SEQ_Py_DecodeLocale   (Py_DecodeLocale)(wchar_t *)((const char *)(size_t *))
 
#define PY_FUNC_SEQ_PyMem_RawFree   (PyMem_RawFree)(void)((void *))
 
#define PY_FUNC_SEQ_PyMem_RawMalloc   (PyMem_RawMalloc)(void *)((size_t))
 
#define PY_FUNC_SEQ_PyModule_GetState   (PyModule_GetState)(void *)((PY_PyObject *))
 
#define PY_FUNC_SEQ_PyOS_InitInterrupts   (PyOS_InitInterrupts)(void)() \
 
#define PY_PyInt_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyInt_Type())
 
#define PY_PyString_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyString_Type())
 
#define PY_Py_INCREF   PY_Py_IncRef
 
#define PY_Py_DECREF   PY_Py_DecRef
 
#define PY_Py_XDECREF(op)   if ((op) == NULL) ; else PY_Py_DECREF(op)
 
#define PY_Py_False()   (&PY__Py_ZeroStruct())
 
#define PY_Py_True()   (&PY__Py_TrueStruct())
 
#define PY_Py_None()   (&PY__Py_NoneStruct())
 
#define PY_Py_RETURN_NONE   return PY_Py_INCREF(PY_Py_None()), PY_Py_None()
 
#define PY_PyMODINIT_FUNC   extern "C" SYS_VISIBILITY_EXPORT void
 
#define PY_PyRun_SimpleString(s)   PY_PyRun_SimpleStringFlags(s, NULL)
 
#define PY_Py_CompileString(str, p, s)   PY_Py_CompileStringFlags(str, p, s, NULL)
 
#define PY_PyRun_InteractiveLoop(f, p)   PY_PyRun_InteractiveLoopFlags(f, p, NULL)
 
#define PY_PyList_SET_ITEM(op, i, v)   (((PY_PyListObject *)(op))->ob_item()[i] = (v))
 
#define PY_PyTuple_SET_ITEM(op, i, v)   (((PY_PyTupleObject *)(op))->ob_item()[i] = (v))
 
#define PY_PyList_GET_ITEM(op, i, v)   (((PY_PyListObject *)(op))->ob_item()[i])
 
#define PY_PyTuple_GET_ITEM(op, i)   (((PY_PyTupleObject *)(op))->ob_item()[i])
 
#define PY_PyObject_TypeCheck(ob, tp)   ((ob)->ob_type() == (tp) || PY_PyType_IsSubtype((ob)->ob_type(), (tp)))
 
#define PY_PyCObject_Check(op)   (op->ob_type() == &PY_PyCObject_Type())
 
#define PY_PyFloat_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyFloat_Type())
 
#define PY_PyLong_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyLong_Type())
 
#define PY_PyBool_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyBool_Type())
 
#define PY_PyUnicode_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyUnicode_Type())
 
#define PY_PyTuple_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyTuple_Type())
 
#define PY_PyList_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyList_Type())
 
#define PY_PyDict_Check(op)   PY_PyObject_TypeCheck(op, &PY_PyDict_Type())
 
#define PY_PyFunction_Check(op)   ((op)->ob_type() == &PY_PyFunction_Type())
 
#define PY_PyBytes_Check(op)   ((op)->ob_type() == &PY_PyBytes_Type())
 
#define PY_PyExceptionInstance_Check(op)   PY_PyObject_TypeCheck(op, (PY_PyTypeObject *)&PY_PyExc_BaseException())
 
#define PY_PYFRAME_BACK(op)   ((op)->f_back())
 
#define PY_PYFRAME_CODE(op)   ((op)->f_code())
 

Typedefs

using PY_AtExitFunc ) = void(*)(
 
typedef char *(* PY_PyOS_ReadlineFunctionPointerType )(FILE *, FILE *, const char *)
 
typedef int PY_PyGILState_STATE
 
typedef ssize_t PY_Py_ssize_t
 
typedef PY_Py_ssize_t PY_Py_hash_t
 
typedef PY_PyObject *(* PY_PyCFunction )(PY_PyObject *, PY_PyObject *)
 

Functions

 PY_ADD_SUBCLASS_2 (PY_PyObject, PY_PyObject_HEAD_EXTRA, PY_Py_ssize_t, ob_refcnt, PY_PyTypeObject *, ob_type) PY_ADD_SUBCLASS_1(PY_PyVarObject
 
ob_size PY_ADD_SUBCLASS_1 (PY_PyTypeObject, PY_PyVarObject, const char *, tp_name) PY_ADD_SUBCLASS_2(PY_PyFrameObject
 
ob_size PY_PyFrameObject
PY_PyCodeObject f_code 
PY_ADD_SUBCLASS_1 (PY_PyListObject, PY_PyVarObject, PY_PyObject **, ob_item) class PY_API PY_PyTupleObject
 
PY_API PY_PyObjectPY_Py_InitModule (const char *name, PY_PyMethodDef *methods)
 
PY_API int PY_PyArg_ParseTuple (PY_PyObject *args, const char *format,...)
 
PY_API PY_PyObjectPY_Py_BuildValue (const char *format,...)
 
PY_API PY_PyObjectPY_PyObject_CallMethod (PY_PyObject *o, const char *name, const char *format,...)
 
PY_API int PY_PyGILState_Check ()
 
PY_API void PYloadPythonLibrary ()
 
PY_API int PYgetPythonVersion ()
 
PY_API int PYgetPythonMajorVersion ()
 
PY_API int PYgetPythonMinorVersion ()
 
PY_API void PYgetHFSPythonSitePackagesPath (UT_WorkBuffer &site_packages_path)
 
PY_API bool PYisHFSPythonLibraryLoaded ()
 
PY_API wchar_t ** PY_AllocAndInitWCharArgs (int argc, char *argv[])
 
PY_API void PY_FreeWCharArgs (int argc, wchar_t **wargv)
 

Variables

class PY_API PY_PyTypeObject
 
class PY_API PY_PyCodeObject
 
class PY_API PY_PyCompilerFlags
 
class PY_API PY_PyThreadState
 
struct PY_API PY_PyMethodDef
 
struct PY_API PY_PyConfig
 
struct PY_API PY_PyPreConfig
 
struct PY_API PY_PyStatus
 
struct PY_API PY_PyWideStringList
 
 PY_PyObject
 
ob_size PY_PyVarObject
 
ob_size PY_PyFrameObject f_back
 

Macro Definition Documentation

#define PY_ADD_SUBCLASS_1 (   subclass,
  base_class,
  member1_type,
  member1_name 
)
Value:
class PY_API subclass : public base_class \
{ \
public: \
member1_type member1_name() \
{ return pyAccessStructMember<member1_type>( \
this, base_class::theStructSize); } \
\
static void computeStructSize() \
{ theStructSize = base_class::theStructSize + sizeof(member1_type); } \
\
static int theStructSize; \
};
**But if you need a or simply need to know when the task has note that the like this
Definition: thread.h:617
#define PY_API
Definition: PY_API.h:10

Definition at line 396 of file PY_CPythonAPI.h.

#define PY_ADD_SUBCLASS_2 (   subclass,
  base_class,
  member1_type,
  member1_name,
  member2_type,
  member2_name 
)
Value:
class PY_API subclass : public base_class \
{ \
public: \
member1_type member1_name() \
{ return pyAccessStructMember<member1_type>( \
this, base_class::theStructSize); } \
\
member2_type member2_name() \
{ return pyAccessStructMember<member2_type>( \
this, base_class::theStructSize + sizeof(member1_type)); } \
\
static void computeStructSize() \
{ theStructSize = base_class::theStructSize + \
sizeof(member1_type) + sizeof(member2_type); } \
\
static int theStructSize; \
};
**But if you need a or simply need to know when the task has note that the like this
Definition: thread.h:617
#define PY_API
Definition: PY_API.h:10

Definition at line 411 of file PY_CPythonAPI.h.

#define PY_CALLBACK_SEQ_OF_2 (   r,
  macro,
  seq 
)    macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq))

Definition at line 280 of file PY_CPythonAPI.h.

#define PY_CALLBACK_SEQ_OF_3 (   r,
  macro,
  seq 
)    macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq), PY_SEQ_ELEM_2(seq))

Definition at line 288 of file PY_CPythonAPI.h.

#define PY_DECLARE_FUNCTION (   function_name,
  return_type,
  parm_types 
)
Value:
PY_API return_type HBOOST_PP_CAT(PY_, function_name)( \
PY_MAKE_PARM_LIST(parm_types));
#define PY_MAKE_PARM_LIST(parm_types)
#define PY_API
Definition: PY_API.h:10

Definition at line 664 of file PY_CPythonAPI.h.

#define PY_DECLARE_FUNCTION_FROM_SEQ (   seq)    PY_CALLBACK_SEQ_OF_3(_, PY_DECLARE_FUNCTION, seq)

Definition at line 659 of file PY_CPythonAPI.h.

#define PY_DECLARE_WRAPPED_CONSTANT (   constant_name,
  type 
)    PY_API type &HBOOST_PP_CAT(PY_, constant_name)();

Definition at line 670 of file PY_CPythonAPI.h.

#define PY_FOR_EACH_SEQ_OF_2 (   macro,
  seq 
)    HBOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_2, macro, seq)

Definition at line 275 of file PY_CPythonAPI.h.

#define PY_FOR_EACH_SEQ_OF_3 (   macro,
  seq 
)    HBOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_3, macro, seq)

Definition at line 286 of file PY_CPythonAPI.h.

#define PY_FUNC_PYSYS_ADDWARNOPTION   ((PySys_AddWarnOption)(void)((const wchar_t *)))

Definition at line 200 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_Py_DecodeLocale   (Py_DecodeLocale)(wchar_t *)((const char *)(size_t *))

Definition at line 716 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_Py_Main   ((Py_Main)(int)((int)(wchar_t **)))

Definition at line 72 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyBytes_AsStringAndSize
Value:
(PyBytes_AsStringAndSize)(int) \
((PY_PyObject *)(char **)(PY_Py_ssize_t *))
PY_PyObject
ssize_t PY_Py_ssize_t

Definition at line 709 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyCObject_AsVoidPtr   (PyCObject_AsVoidPtr)(void*)((PY_PyObject *))

Definition at line 714 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyCObject_GetDesc   (PyCObject_GetDesc)(void*)((PY_PyObject *))

Definition at line 712 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyInt_AsLong   (PyInt_AsLong)(long)((PY_PyObject *))

Definition at line 697 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyInt_FromLong   (PyInt_FromLong)(PY_PyObject *)((long))

Definition at line 698 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyMem_RawFree   (PyMem_RawFree)(void)((void *))

Definition at line 718 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyMem_RawMalloc   (PyMem_RawMalloc)(void *)((size_t))

Definition at line 720 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyModule_GetState   (PyModule_GetState)(void *)((PY_PyObject *))

Definition at line 722 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyOS_InitInterrupts   (PyOS_InitInterrupts)(void)() \

Definition at line 724 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyString_AsString   (PyString_AsString)(char *)((PY_PyObject *))

Definition at line 699 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyString_AsStringAndSize   (PyString_AsStringAndSize)(int)((PY_PyObject *)(char **)(PY_Py_ssize_t *))

Definition at line 701 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyString_AsUTF8String   (PyString_AsUTF8String)(PY_PyObject *)((PY_PyObject *))

Definition at line 707 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyString_FromString   (PyString_FromString)(PY_PyObject *)((const char *))

Definition at line 703 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PyString_FromStringAndSize   (PyString_FromStringAndSize)(PY_PyObject *)((const char *)(PY_Py_ssize_t))

Definition at line 705 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PySys_SetArgv   ((PySys_SetArgv)(void)((int)(wchar_t **)))

Definition at line 75 of file PY_CPythonAPI.h.

#define PY_FUNC_SEQ_PySys_SetArgvEx   ((PySys_SetArgvEx)(void)((int)(wchar_t **)(int)))

Definition at line 78 of file PY_CPythonAPI.h.

#define PY_MAKE_ARG (   r,
  unused_data,
  i,
  unused_elem 
)    HBOOST_PP_COMMA_IF(i) HBOOST_PP_CAT(arg, i)

Definition at line 324 of file PY_CPythonAPI.h.

#define PY_MAKE_ARG_LIST (   parm_types)    HBOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_ARG, _, parm_types)

Definition at line 321 of file PY_CPythonAPI.h.

#define PY_MAKE_PARM (   r,
  unused_data,
  i,
  elem 
)    HBOOST_PP_COMMA_IF(i) elem HBOOST_PP_CAT(arg, i)

Definition at line 313 of file PY_CPythonAPI.h.

#define PY_MAKE_PARM_LIST (   parm_types)    HBOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_PARM, _, parm_types)

Definition at line 306 of file PY_CPythonAPI.h.

#define PY_Py_CompileString (   str,
  p,
  s 
)    PY_Py_CompileStringFlags(str, p, s, NULL)

Definition at line 797 of file PY_CPythonAPI.h.

#define PY_Py_DECREF   PY_Py_DecRef

Definition at line 786 of file PY_CPythonAPI.h.

#define PY_Py_False ( )    (&PY__Py_ZeroStruct())

Definition at line 789 of file PY_CPythonAPI.h.

#define PY_Py_INCREF   PY_Py_IncRef

Definition at line 785 of file PY_CPythonAPI.h.

#define PY_Py_None ( )    (&PY__Py_NoneStruct())
Examples:
HOM/_hdk_sample_hom_extensions.C.

Definition at line 791 of file PY_CPythonAPI.h.

#define PY_Py_RETURN_NONE   return PY_Py_INCREF(PY_Py_None()), PY_Py_None()

Definition at line 793 of file PY_CPythonAPI.h.

#define PY_Py_True ( )    (&PY__Py_TrueStruct())

Definition at line 790 of file PY_CPythonAPI.h.

#define PY_Py_XDECREF (   op)    if ((op) == NULL) ; else PY_Py_DECREF(op)

Definition at line 787 of file PY_CPythonAPI.h.

#define PY_PyBool_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyBool_Type())

Definition at line 816 of file PY_CPythonAPI.h.

#define PY_PyBytes_Check (   op)    ((op)->ob_type() == &PY_PyBytes_Type())

Definition at line 822 of file PY_CPythonAPI.h.

#define PY_PyCObject_Check (   op)    (op->ob_type() == &PY_PyCObject_Type())

Definition at line 813 of file PY_CPythonAPI.h.

#define PY_PyDict_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyDict_Type())

Definition at line 820 of file PY_CPythonAPI.h.

#define PY_PyExceptionInstance_Check (   op)    PY_PyObject_TypeCheck(op, (PY_PyTypeObject *)&PY_PyExc_BaseException())

Definition at line 828 of file PY_CPythonAPI.h.

#define PY_PyFloat_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyFloat_Type())

Definition at line 814 of file PY_CPythonAPI.h.

#define PY_PYFRAME_BACK (   op)    ((op)->f_back())

Definition at line 835 of file PY_CPythonAPI.h.

#define PY_PYFRAME_CODE (   op)    ((op)->f_code())

Definition at line 836 of file PY_CPythonAPI.h.

#define PY_PyFunction_Check (   op)    ((op)->ob_type() == &PY_PyFunction_Type())

Definition at line 821 of file PY_CPythonAPI.h.

#define PY_PyInt_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyInt_Type())

Definition at line 778 of file PY_CPythonAPI.h.

#define PY_PyList_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyList_Type())

Definition at line 819 of file PY_CPythonAPI.h.

#define PY_PyList_GET_ITEM (   op,
  i,
  v 
)    (((PY_PyListObject *)(op))->ob_item()[i])

Definition at line 805 of file PY_CPythonAPI.h.

#define PY_PyList_SET_ITEM (   op,
  i,
  v 
)    (((PY_PyListObject *)(op))->ob_item()[i] = (v))

Definition at line 800 of file PY_CPythonAPI.h.

#define PY_PyLong_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyLong_Type())

Definition at line 815 of file PY_CPythonAPI.h.

#define PY_PyMODINIT_FUNC   extern "C" SYS_VISIBILITY_EXPORT void

Definition at line 794 of file PY_CPythonAPI.h.

#define PY_PyObject_TypeCheck (   ob,
  tp 
)    ((ob)->ob_type() == (tp) || PY_PyType_IsSubtype((ob)->ob_type(), (tp)))

Definition at line 811 of file PY_CPythonAPI.h.

#define PY_PyRun_InteractiveLoop (   f,
 
)    PY_PyRun_InteractiveLoopFlags(f, p, NULL)

Definition at line 798 of file PY_CPythonAPI.h.

#define PY_PyRun_SimpleString (   s)    PY_PyRun_SimpleStringFlags(s, NULL)

Definition at line 796 of file PY_CPythonAPI.h.

#define PY_PyString_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyString_Type())

Definition at line 779 of file PY_CPythonAPI.h.

#define PY_PyTuple_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyTuple_Type())

Definition at line 818 of file PY_CPythonAPI.h.

#define PY_PyTuple_GET_ITEM (   op,
 
)    (((PY_PyTupleObject *)(op))->ob_item()[i])

Definition at line 807 of file PY_CPythonAPI.h.

#define PY_PyTuple_SET_ITEM (   op,
  i,
  v 
)    (((PY_PyTupleObject *)(op))->ob_item()[i] = (v))

Definition at line 802 of file PY_CPythonAPI.h.

#define PY_PyUnicode_Check (   op)    PY_PyObject_TypeCheck(op, &PY_PyUnicode_Type())

Definition at line 817 of file PY_CPythonAPI.h.

#define PY_SEQ_ELEM_0 (   seq)    HBOOST_PP_SEQ_HEAD(seq)

Definition at line 294 of file PY_CPythonAPI.h.

#define PY_SEQ_ELEM_1 (   seq)    HBOOST_PP_SEQ_HEAD(HBOOST_PP_SEQ_TAIL(seq))

Definition at line 296 of file PY_CPythonAPI.h.

#define PY_SEQ_ELEM_2 (   seq)    HBOOST_PP_SEQ_HEAD(HBOOST_PP_SEQ_TAIL(HBOOST_PP_SEQ_TAIL(seq)))

Definition at line 298 of file PY_CPythonAPI.h.

#define PY_WRAPPED_CONSTANTS
Value:
((_Py_NoneStruct)(PY_PyObject)) \
((_PyOS_ReadlineTState)(PY_PyThreadState *)) \
((PyOS_ReadlineFunctionPointer)(PY_PyOS_ReadlineFunctionPointerType)) \
((PyExc_RuntimeError)(PY_PyObject *)) \
((PyExc_IndexError)(PY_PyObject *)) \
((PyExc_AttributeError)(PY_PyObject *)) \
((PyExc_TypeError)(PY_PyObject *)) \
((PyExc_KeyboardInterrupt)(PY_PyObject *)) \
((PyExc_SystemExit)(PY_PyObject *)) \
((PyExc_BaseException)(PY_PyObject *)) \
((PyLong_Type)(PY_PyTypeObject)) \
((PyBool_Type)(PY_PyTypeObject)) \
((PyFloat_Type)(PY_PyTypeObject)) \
((PyUnicode_Type)(PY_PyTypeObject)) \
((PyTuple_Type)(PY_PyTypeObject)) \
((PyList_Type)(PY_PyTypeObject)) \
((PyDict_Type)(PY_PyTypeObject)) \
((PyFunction_Type)(PY_PyTypeObject))
PY_PyObject
class PY_API PY_PyThreadState
class PY_API PY_PyTypeObject
char *(* PY_PyOS_ReadlineFunctionPointerType)(FILE *, FILE *, const char *)

Definition at line 234 of file PY_CPythonAPI.h.

#define PY_WRAPPED_FUNCTIONS

Definition at line 89 of file PY_CPythonAPI.h.

#define PY_WRAPPED_MEMORY_FUNCTIONS
Value:
((PyMem_Malloc)(void *)((size_t))) \
((PyMem_Free)(void)((void *))) \
void
Definition: png.h:1083

Definition at line 224 of file PY_CPythonAPI.h.

#define PY_WRAPPED_UNCHECKED_FUNCTIONS
Value:
((Py_InitializeEx)(void)((int))) \
((Py_IsInitialized)(int)()) \
((Py_SetProgramName)(void)((char*))) \
((Py_SetPythonHome)(void)((char*))) \
((PyEval_InitThreads)(void)()) \
((PyEval_RestoreThread)(void)((PY_PyThreadState *))) \
((PyEval_SaveThread)(PY_PyThreadState *)()) \
((PyGILState_Ensure)(PY_PyGILState_STATE)()) \
((PyGILState_GetThisThreadState)(PY_PyThreadState *)()) \
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
int PY_PyGILState_STATE
void
Definition: png.h:1083
#define PY_FUNC_PYSYS_ADDWARNOPTION
class PY_API PY_PyThreadState

Definition at line 210 of file PY_CPythonAPI.h.

Typedef Documentation

using PY_AtExitFunc = void (*)(

Definition at line 68 of file PY_CPythonAPI.h.

Definition at line 356 of file PY_CPythonAPI.h.

Definition at line 352 of file PY_CPythonAPI.h.

typedef PY_PyObject*(* PY_PyCFunction)(PY_PyObject *, PY_PyObject *)

Definition at line 501 of file PY_CPythonAPI.h.

Definition at line 339 of file PY_CPythonAPI.h.

typedef char*(* PY_PyOS_ReadlineFunctionPointerType)(FILE *, FILE *, const char *)

Definition at line 233 of file PY_CPythonAPI.h.

Function Documentation

ob_size PY_ADD_SUBCLASS_1 ( PY_PyTypeObject  ,
PY_PyVarObject  ,
const char *  ,
tp_name   
)
ob_size PY_PyFrameObject PY_PyCodeObject f_code PY_ADD_SUBCLASS_1 ( PY_PyListObject  ,
PY_PyVarObject  ,
PY_PyObject **  ,
ob_item   
)

Definition at line 480 of file PY_CPythonAPI.h.

PY_ADD_SUBCLASS_2 ( PY_PyObject  ,
PY_PyObject_HEAD_EXTRA  ,
PY_Py_ssize_t  ,
ob_refcnt  ,
PY_PyTypeObject ,
ob_type   
)
PY_API wchar_t** PY_AllocAndInitWCharArgs ( int  argc,
char *  argv[] 
)
PY_API void PY_FreeWCharArgs ( int  argc,
wchar_t **  wargv 
)
PY_API PY_PyObject* PY_Py_BuildValue ( const char *  format,
  ... 
)
PY_API PY_PyObject* PY_Py_InitModule ( const char *  name,
PY_PyMethodDef methods 
)
PY_API int PY_PyArg_ParseTuple ( PY_PyObject args,
const char *  format,
  ... 
)
PY_API int PY_PyGILState_Check ( )
PY_API PY_PyObject* PY_PyObject_CallMethod ( PY_PyObject o,
const char *  name,
const char *  format,
  ... 
)
PY_API void PYgetHFSPythonSitePackagesPath ( UT_WorkBuffer site_packages_path)
PY_API int PYgetPythonMajorVersion ( )
PY_API int PYgetPythonMinorVersion ( )
PY_API int PYgetPythonVersion ( )
PY_API bool PYisHFSPythonLibraryLoaded ( )
PY_API void PYloadPythonLibrary ( )

Variable Documentation

ob_size PY_PyFrameObject f_back

Definition at line 476 of file PY_CPythonAPI.h.

class PY_API PY_PyCodeObject

Definition at line 331 of file PY_CPythonAPI.h.

class PY_API PY_PyCompilerFlags

Definition at line 332 of file PY_CPythonAPI.h.

Definition at line 335 of file PY_CPythonAPI.h.

Definition at line 334 of file PY_CPythonAPI.h.

PY_PyObject
Examples:
HOM/_hdk_sample_hom_extensions.C.

Definition at line 470 of file PY_CPythonAPI.h.

Definition at line 336 of file PY_CPythonAPI.h.

Definition at line 337 of file PY_CPythonAPI.h.

class PY_API PY_PyThreadState

Definition at line 333 of file PY_CPythonAPI.h.

class PY_API PY_PyTypeObject

Definition at line 330 of file PY_CPythonAPI.h.

ob_size PY_PyVarObject

Definition at line 476 of file PY_CPythonAPI.h.

Definition at line 338 of file PY_CPythonAPI.h.