24 #ifdef PXR_BASE_TF_PY_MODULE_H
25 #error This file should only be included once in any given source (.cpp) file.
27 #define PXR_BASE_TF_PY_MODULE_H
35 #include <hboost/python/module.hpp>
49 static void WrapModule();
55 const char* packageModule,
56 const char* packageName,
57 const char* packageTag,
58 const char* packageTag2);
87 static struct PyModuleDef moduledef = {
88 PyModuleDef_HEAD_INIT,
100 return hboost::python::detail::init_module(moduledef,
101 TF_PP_CAT(init_module_, MFB_PACKAGE_NAME));
120 static struct PyModuleDef moduledef = {
121 PyModuleDef_HEAD_INIT,
133 return hboost::python::detail::init_module(moduledef,
134 TF_PP_CAT(init_module_, MFB_PACKAGE_NAME));
138 #define TF_WRAP_MODULE static void WrapModule()
141 #define TF_WRAP(x) ARCH_HIDDEN void wrap ## x (); wrap ## x ()
PXR_NAMESPACE_OPEN_SCOPE TF_API void Tf_PyInitWrapModule(void(*wrapModule)(), const char *packageModule, const char *packageName, const char *packageTag, const char *packageTag2)
#define TF_PP_STRINGIZE(x)
Expand and convert the argument to a string, using a most minimal macro.
ARCH_EXPORT void TF_PP_CAT(init_module_, MFB_PACKAGE_NAME)()
#define PXR_NAMESPACE_USING_DIRECTIVE
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE