Go to the documentation of this file.
5 #ifndef BALL_COMMON_GLOBAL_H
6 #define BALL_COMMON_GLOBAL_H
8 #ifndef BALL_CONFIG_CONFIG_H
9 # include <BALL/CONFIG/config.h>
15 #ifdef BALL_HAS_BASETSD_H
21 #ifdef BALL_HAS_STDINT_H
25 #ifdef BALL_COMPILER_MSVC
27 # ifdef BALL_BUILD_DLL
28 # define BALL_EXPORT __declspec(dllexport)
29 # define BALL_EXTERN_VARIABLE __declspec(dllexport) extern
31 # define BALL_EXPORT __declspec(dllimport)
32 # define BALL_EXTERN_VARIABLE __declspec(dllimport) extern
34 # ifdef BALL_VIEW_BUILD_DLL
35 # define BALL_VIEW_EXPORT __declspec(dllexport)
37 # define BALL_VIEW_EXPORT __declspec(dllimport)
39 #elif defined(BALL_COMPILER_GXX) && (BALL_COMPILER_VERSION_MAJOR > 4 || (BALL_COMPILER_VERSION_MAJOR == 4 && BALL_COMPILER_VERSION_MINOR >= 3))
40 # define BALL_EXPORT __attribute__((visibility ("default")))
41 # define BALL_HIDE __attribute__((visibility ("hidden")))
42 # define BALL_VIEW_EXPORT __attribute__((visibility ("default")))
43 # define BALL_EXTERN_VARIABLE extern __attribute__((visibility ("default")))
44 # elif defined(BALL_COMPILER_LLVM)
45 # define BALL_EXPORT __attribute__((visibility ("default")))
46 # define BALL_HIDE __attribute__((visibility ("hidden")))
47 # define BALL_VIEW_EXPORT __attribute__((visibility ("default")))
48 # define BALL_EXTERN_VARIABLE extern __attribute__((visibility ("default")))
52 # define BALL_VIEW_EXPORT
53 # define BALL_EXTERN_VARIABLE extern
59 #if defined(BALL_COMPILER_MSVC) && (_MSC_VER >= 1300)
60 #define BALL_DEPRECATED __declspec(deprecated)
61 #elif defined(BALL_COMPILER_GXX) || defined(BALL_COMPILER_LLVM)
62 #define BALL_DEPRECATED __attribute__((deprecated))
64 #define BALL_DEPRECATED
254 #endif // BALL_COMMON_GLOBAL_H
static const Handle Handle_MAX
static const Size Size_MAX
static const Handle Handle_MIN
static const Position Position_MAX
static const Index Index_MIN
static const Position INVALID_Position
BALL_ULONG64_TYPE LongSize
static const Position Position_MIN
static const Distance Distance_MIN
@ ASCII__EXCLAMATION_MARK
static const Index Index_MAX
BALL_LONG64_TYPE LongIndex
static const Distance Distance_MAX
T min(const T &a, const T &b)
static const Distance INVALID_Distance
static const Handle INVALID_Handle
static const Index INVALID_Index
T max(const T &a, const T &b)
BALL_INDEX_TYPE ErrorCode
BALL_POINTERSIZEUINT_TYPE PointerSizeUInt
static const Size Size_MIN
int(* ComparatorType)(const void *, const void *)
static const Size INVALID_Size