HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
py3Compat.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/tf/pySafePython.h"
+ Include dependency graph for py3Compat.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TfPy_TPFLAGS_HAVE_NEWBUFFER   Py_TPFLAGS_HAVE_NEWBUFFER
 
#define TfPy_TPFLAGS_HAVE_GETCHARBUFFER   Py_TPFLAGS_HAVE_GETCHARBUFFER
 
#define TfPyInt_Check   PyInt_Check
 
#define TfPyInt_AS_LONG   PyInt_AS_LONG
 
#define TfPyIteratorNextMethodName   "next"
 
#define TfPyClassMethodFuncName   "im_func"
 
#define TfPyBoolBuiltinFuncName   "__nonzero__"
 
#define TfPyBuiltinModuleName   "__builtin__"
 
#define TfPyString_AsString   PyString_AsString
 
#define TfPyString_Check   PyString_Check
 

Detailed Description

Compatibility code for supporting python 2 and 3

Definition in file py3Compat.h.

Macro Definition Documentation

#define TfPy_TPFLAGS_HAVE_GETCHARBUFFER   Py_TPFLAGS_HAVE_GETCHARBUFFER

Definition at line 61 of file py3Compat.h.

#define TfPy_TPFLAGS_HAVE_NEWBUFFER   Py_TPFLAGS_HAVE_NEWBUFFER

Definition at line 60 of file py3Compat.h.

#define TfPyBoolBuiltinFuncName   "__nonzero__"

Definition at line 68 of file py3Compat.h.

#define TfPyBuiltinModuleName   "__builtin__"

Definition at line 69 of file py3Compat.h.

#define TfPyClassMethodFuncName   "im_func"

Definition at line 67 of file py3Compat.h.

#define TfPyInt_AS_LONG   PyInt_AS_LONG

Definition at line 64 of file py3Compat.h.

#define TfPyInt_Check   PyInt_Check

Definition at line 63 of file py3Compat.h.

#define TfPyIteratorNextMethodName   "next"

Definition at line 66 of file py3Compat.h.

#define TfPyString_AsString   PyString_AsString

Definition at line 71 of file py3Compat.h.

#define TfPyString_Check   PyString_Check

Definition at line 72 of file py3Compat.h.