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 <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 395 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 410 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 279 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 287 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
ARCH_EXPORT void HBOOST_PP_CAT(init_module_, MFB_PACKAGE_NAME)()
Definition: pyModule.h:62

Definition at line 645 of file PY_CPythonAPI.h.

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

Definition at line 640 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 651 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 274 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 285 of file PY_CPythonAPI.h.

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

Definition at line 199 of file PY_CPythonAPI.h.

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

Definition at line 697 of file PY_CPythonAPI.h.

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

Definition at line 71 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 690 of file PY_CPythonAPI.h.

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

Definition at line 695 of file PY_CPythonAPI.h.

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

Definition at line 693 of file PY_CPythonAPI.h.

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

Definition at line 678 of file PY_CPythonAPI.h.

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

Definition at line 679 of file PY_CPythonAPI.h.

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

Definition at line 699 of file PY_CPythonAPI.h.

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

Definition at line 701 of file PY_CPythonAPI.h.

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

Definition at line 703 of file PY_CPythonAPI.h.

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

Definition at line 705 of file PY_CPythonAPI.h.

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

Definition at line 680 of file PY_CPythonAPI.h.

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

Definition at line 682 of file PY_CPythonAPI.h.

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

Definition at line 688 of file PY_CPythonAPI.h.

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

Definition at line 684 of file PY_CPythonAPI.h.

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

Definition at line 686 of file PY_CPythonAPI.h.

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

Definition at line 74 of file PY_CPythonAPI.h.

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

Definition at line 77 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 323 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 320 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 312 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 305 of file PY_CPythonAPI.h.

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

Definition at line 778 of file PY_CPythonAPI.h.

#define PY_Py_DECREF   PY_Py_DecRef

Definition at line 767 of file PY_CPythonAPI.h.

#define PY_Py_False ( )    (&PY__Py_ZeroStruct())

Definition at line 770 of file PY_CPythonAPI.h.

#define PY_Py_INCREF   PY_Py_IncRef

Definition at line 766 of file PY_CPythonAPI.h.

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

Definition at line 772 of file PY_CPythonAPI.h.

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

Definition at line 774 of file PY_CPythonAPI.h.

#define PY_Py_True ( )    (&PY__Py_TrueStruct())

Definition at line 771 of file PY_CPythonAPI.h.

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

Definition at line 768 of file PY_CPythonAPI.h.

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

Definition at line 797 of file PY_CPythonAPI.h.

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

Definition at line 803 of file PY_CPythonAPI.h.

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

Definition at line 794 of file PY_CPythonAPI.h.

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

Definition at line 801 of file PY_CPythonAPI.h.

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

Definition at line 809 of file PY_CPythonAPI.h.

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

Definition at line 795 of file PY_CPythonAPI.h.

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

Definition at line 816 of file PY_CPythonAPI.h.

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

Definition at line 817 of file PY_CPythonAPI.h.

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

Definition at line 802 of file PY_CPythonAPI.h.

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

Definition at line 759 of file PY_CPythonAPI.h.

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

Definition at line 800 of file PY_CPythonAPI.h.

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

Definition at line 786 of file PY_CPythonAPI.h.

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

Definition at line 781 of file PY_CPythonAPI.h.

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

Definition at line 796 of file PY_CPythonAPI.h.

#define PY_PyMODINIT_FUNC   extern "C" SYS_VISIBILITY_EXPORT void

Definition at line 775 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 792 of file PY_CPythonAPI.h.

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

Definition at line 779 of file PY_CPythonAPI.h.

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

Definition at line 777 of file PY_CPythonAPI.h.

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

Definition at line 760 of file PY_CPythonAPI.h.

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

Definition at line 799 of file PY_CPythonAPI.h.

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

Definition at line 788 of file PY_CPythonAPI.h.

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

Definition at line 783 of file PY_CPythonAPI.h.

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

Definition at line 798 of file PY_CPythonAPI.h.

#define PY_SEQ_ELEM_0 (   seq)    HBOOST_PP_SEQ_HEAD(seq)

Definition at line 293 of file PY_CPythonAPI.h.

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

Definition at line 295 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 297 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 233 of file PY_CPythonAPI.h.

#define PY_WRAPPED_FUNCTIONS

Definition at line 88 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 223 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 209 of file PY_CPythonAPI.h.

Typedef Documentation

using PY_AtExitFunc = void (*)(

Definition at line 67 of file PY_CPythonAPI.h.

Definition at line 355 of file PY_CPythonAPI.h.

Definition at line 351 of file PY_CPythonAPI.h.

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

Definition at line 500 of file PY_CPythonAPI.h.

Definition at line 338 of file PY_CPythonAPI.h.

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

Definition at line 232 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 479 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 475 of file PY_CPythonAPI.h.

class PY_API PY_PyCodeObject

Definition at line 330 of file PY_CPythonAPI.h.

class PY_API PY_PyCompilerFlags

Definition at line 331 of file PY_CPythonAPI.h.

Definition at line 334 of file PY_CPythonAPI.h.

Definition at line 333 of file PY_CPythonAPI.h.

PY_PyObject
Examples:
HOM/_hdk_sample_hom_extensions.C.

Definition at line 469 of file PY_CPythonAPI.h.

Definition at line 335 of file PY_CPythonAPI.h.

Definition at line 336 of file PY_CPythonAPI.h.

class PY_API PY_PyThreadState

Definition at line 332 of file PY_CPythonAPI.h.

class PY_API PY_PyTypeObject

Definition at line 329 of file PY_CPythonAPI.h.

ob_size PY_PyVarObject

Definition at line 475 of file PY_CPythonAPI.h.

Definition at line 337 of file PY_CPythonAPI.h.