37 #ifndef __SAGITTARIUS_COMMON_H_
38 #define __SAGITTARIUS_COMMON_H_
43 #include "graphfab/core/config.h"
54 #define QUOTE(ARG) #ARG
55 #define EXPAND_AND_QUOTE(ARG) QUOTE(ARG)
57 #define JOIN(x, y) x##y
66 #if __STDC_VERSION__ < 199901L
73 #if SAGITTARIUS_PLATFORM == SAGITTARIUS_PLATFORM_LINUX
74 # if SAGITTARIUS_ARCH == SAGITTARIUS_ARCH_64
75 # define PLATFORM_UCHAR_MAX 256
76 # elif SAGITTARIUS_ARCH == SAGITTARIUS_ARCH_32
77 # define PLATFORM_UCHAR_MAX 256
79 #elif SAGITTARIUS_PLATFORM == SAGITTARIUS_PLATFORM_WIN
80 # if SAGITTARIUS_ARCH == SAGITTARIUS_ARCH_64
81 # define PLATFORM_UCHAR_MAX 256
82 # elif SAGITTARIUS_ARCH == SAGITTARIUS_ARCH_32
83 # define PLATFORM_UCHAR_MAX 256
85 #elif SAGITTARIUS_PLATFORM == SAGITTARIUS_PLATFORM_APPLE
86 # if SAGITTARIUS_ARCH == SAGITTARIUS_ARCH_64
87 # define PLATFORM_UCHAR_MAX 256
88 # elif SAGITTARIUS_ARCH == SAGITTARIUS_ARCH_32
89 # define PLATFORM_UCHAR_MAX 256
94 #define SAGITTARIUS_REAL double
95 #define GF_PYREALFMT "d"
98 #define SAGITTARIUS_DEBUG_LEVEL SBNW_DEBUG_LEVEL
107 typedef std::complex<Real> Complex;
109 extern const Real pi;
111 #if SAGITTARIUS_USE_WIDE_STRINGS
112 typedef std::wstring _String;
115 typedef std::string _String;
119 typedef _String String;
121 typedef _String ASCIIString;
124 typedef unsigned long index_t;
126 #endif//End of C++ typedefs
SAGITTARIUS_REAL Real
Make Real visible to C. Consider letting Real lie in top namespace.
Definition: SagittariusCommon.h:136
#define SAGITTARIUS_REAL
See typedef below.
Definition: SagittariusCommon.h:94
Definition: SagittariusCommon.cpp:38