Mantid
Loading...
Searching...
No Matches
Macros
VersionCompat.h File Reference
#include "MantidPythonInterface/core/WrapPython.h"

Go to the source code of this file.

Macros

#define CODE_OBJECT(x)   (PyCodeObject *)x
 
#define FROM_CSTRING   PyString_FromString
 
#define FROM_LONG   PyInt_FromLong
 
#define INT_CHECK   PyInt_Check
 
#define IS_PY2K
 
#define STR_CHECK   PyString_Check
 
#define TO_CSTRING   PyString_AsString
 
#define TO_LONG   PyInt_AsLong
 

Macro Definition Documentation

◆ CODE_OBJECT

#define CODE_OBJECT (   x)    (PyCodeObject *)x

Definition at line 28 of file VersionCompat.h.

◆ FROM_CSTRING

#define FROM_CSTRING   PyString_FromString

Definition at line 27 of file VersionCompat.h.

◆ FROM_LONG

#define FROM_LONG   PyInt_FromLong

Definition at line 29 of file VersionCompat.h.

◆ INT_CHECK

#define INT_CHECK   PyInt_Check

Definition at line 23 of file VersionCompat.h.

◆ IS_PY2K

#define IS_PY2K

Definition at line 22 of file VersionCompat.h.

◆ STR_CHECK

#define STR_CHECK   PyString_Check

Definition at line 25 of file VersionCompat.h.

◆ TO_CSTRING

#define TO_CSTRING   PyString_AsString

Definition at line 26 of file VersionCompat.h.

◆ TO_LONG

#define TO_LONG   PyInt_AsLong

Definition at line 24 of file VersionCompat.h.