MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lt_define.h
Go to the documentation of this file.
1//
2// This code is property of Celartem, Inc dba Extensis.
3// Copyright (c) 1995-2023. All rights reserved.
4// Use permitted only under license from Extensis.
5//
6/* PUBLIC */
7
17#ifndef LT_DEFINE_H
18#define LT_DEFINE_H
19
20#include "lt_platform.h"
21
26
27#if defined(__cplusplus)
29 #define LT_CPLUSPLUS
30
31 #define LT_DISALLOW_COPY_CONSTRUCTOR(classname) \
32 private: \
33 classname(const classname &); \
34 classname &operator=(const classname &)
35
40
42 #define LT_BEGIN_NAMESPACE( theNameSpace ) namespace theNameSpace {
44 #define LT_END_NAMESPACE( theNameSpace ) }
45
47 #define LT_BEGIN_NAMELESS_NAMESPACE namespace {
49 #define LT_END_NAMELESS_NAMESPACE }
50
52 #define LT_USE_NAMESPACE( theNameSpace ) using namespace theNameSpace;
54 #define LT_USE_NAME( theName ) using theName;
55
56 // (note this is the same model that is used in lidar/Base.h,
57 // except we say "USING" instead of "USE")
58 #define LT_BEGIN_LIZARDTECH_NAMESPACE namespace LizardTech {
59 #define LT_END_LIZARDTECH_NAMESPACE }
60 #define LT_USING_LIZARDTECH_NAMESPACE using namespace LizardTech;
61
65#endif
66
67/*}@*/
68
73
74#if defined _DEBUG && !defined LT_DEBUG
76 #define LT_DEBUG
77#endif
78
86
88#define LT_STRINGIFY(x) #x
90#define LT_XSTRINGIFY(x) LT_STRINGIFY(x)
91
93#define LT_MIN(A,B) ((A) < (B) ? (A) : (B))
95#define LT_MAX(A,B) ((A) > (B) ? (A) : (B))
96
99#if !defined static_assert && __cplusplus < 201103L
100#if _MSC_VER < 1600
101/* Compile Time Assert */
102#define __static_assert2(e, l) typedef int static_assert_line_##l[e ? 1 : -1]
103#define __static_assert1(e, l) __static_assert2(e, l)
104#define static_assert(e, x) __static_assert1(e, __LINE__)
105#endif
106#endif
107
108
109
114#define LT_STATUSSTRING_ADD(NUM,STR)
115
118/* globally disable spurious VC++ warning resulting from use of templates */
119#ifdef LT_COMPILER_MS
120 #pragma warning(disable:4786)
121#endif
122
123/* WinCE does not support the concept of a "current working directory"
124 All file paths are relative to root. Emulator-based validation
125 uses this macro to work around this limitation */
126#ifdef LT_OS_WINCE
127#define WINCE_STORAGECARD "/Storage Card/"
128#else
129#define WINCE_STORAGECARD ""
130#endif
131
132#ifndef LT_ESRI_SOURCE_SDK
133#define LT_SUPPORT_ENCRYPTED_MRSIDS
134#endif
135
136/* other includes to provide users of lt_define.h */
137#include "lt_types.h"
138
139#endif /* LT_DEFINE_H */
Preprocessor symbols for canonical identification of OS, architecture, and compiler.
Declaration of standard types and limits in a C-interface.

Extensis