7 #ifdef PXR_BASE_TF_PY_MODULE_H
8 #error This file should only be included once in any given source (.cpp) file.
10 #define PXR_BASE_TF_PY_MODULE_H
18 #include "pxr/external/boost/python/module.hpp"
32 static void WrapModule();
38 const char* packageModule,
39 const char* packageName,
40 const char* packageTag,
41 const char* packageTag2);
70 static struct PyModuleDef moduledef = {
71 PyModuleDef_HEAD_INIT,
83 return pxr_boost::python::detail::init_module(moduledef,
84 TF_PP_CAT(init_module_, MFB_PACKAGE_NAME));
103 static struct PyModuleDef moduledef = {
104 PyModuleDef_HEAD_INIT,
116 return pxr_boost::python::detail::init_module(moduledef,
117 TF_PP_CAT(init_module_, MFB_PACKAGE_NAME));
121 #define TF_WRAP_MODULE static void WrapModule()
124 #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