ScConfig.h
Go to the documentation of this file.
1
10#ifndef SC_CONFIG_H_
11#define SC_CONFIG_H_
12
16#if defined(__cplusplus)
17# define SC_EXTERN_C_BEGIN extern "C" {
18#else
19# define SC_EXTERN_C_BEGIN
20#endif
21
25#if defined(__cplusplus)
26# define SC_EXTERN_C_END }
27#else
28# define SC_EXTERN_C_END
29#endif
30
32#if !defined(SC_EXTERN)
36#define SC_EXTERN extern
37#endif
38
39#define SC_STATIC_LIBRARY 1
40#define SC_BUILD_SCANDIT_SDK 1
41
42#if defined(SC_GENERATE_DOCS)
43# define SC_EXPORT
44#else
45# define SC_EXPORT __attribute__((visibility("default")))
46#endif
47
48#if defined(__clang__) || defined(__GNUC__)
49# define SC_DEPRECATED(msg) __attribute__((deprecated(msg)))
50#else
51# define SC_DEPRECATED(...)
52#endif
53
54#if !defined(SC_PLATFORM_ANDROID)
55# if defined(__ANDROID__) && __ANDROID__
56# define SC_PLATFORM_ANDROID 1
57# else
58# define SC_PLATFORM_ANDROID 0
59# endif
60#endif
61
62#if !defined(SC_PLATFORM_IOS)
63# if defined(__APPLE__)
64# include "TargetConditionals.h"
65# if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
66# define SC_PLATFORM_IOS 1
67# else
68# define SC_PLATFORM_IOS 0
69# endif
70# else
71# define SC_PLATFORM_IOS 0
72# endif
73#endif
74
75#if !defined(SC_PLATFORM_VISIONOS)
76# if defined(__APPLE__)
77# include "TargetConditionals.h"
78# if defined(TARGET_OS_VISION) && TARGET_OS_VISION
79# define SC_PLATFORM_VISIONOS 1
80# else
81# define SC_PLATFORM_VISIONOS 0
82# endif
83# else
84# define SC_PLATFORM_VISIONOS 0
85# endif
86#endif
87
88#if !defined(SC_PLATFORM_GENERIC)
89# if SC_PLATFORM_ANDROID || SC_PLATFORM_IOS || SC_PLATFORM_VISIONOS
90# define SC_PLATFORM_GENERIC 0
91# else
92# define SC_PLATFORM_GENERIC 1
93# endif
94#endif
96
101#define SC_VERSION_MAJOR 8
102
107#define SC_VERSION_MINOR 6
108
113#define SC_VERSION_PATCH 0
114
115
120#define SC_VERSION_SUFFIX -beta.1
121
123#define SC_VERSION_MAKE(major, minor, patch) \
124 ((major * 10000) + (minor * 100) + patch)
126
127
132#define SC_VERSION_INT SC_VERSION_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, SC_VERSION_PATCH)
133
134
136#define SC_VERSION_STRING_MAKE_(major, minor, patch, suffix) \
137 #major "." #minor "." #patch #suffix
138
139#define SC_VERSION_STRING_MAKE(major, minor, patch, suffix) \
140 SC_VERSION_STRING_MAKE_(major, minor, patch, suffix)
142
147#define SC_VERSION_STRING \
148 SC_VERSION_STRING_MAKE(SC_VERSION_MAJOR, SC_VERSION_MINOR, \
149 SC_VERSION_PATCH, SC_VERSION_SUFFIX)
150
151
152#include <inttypes.h>
153
157typedef int32_t ScBool;
158
163#define SC_TRUE 1
164
169#define SC_FALSE 0
170
171#endif // SC_CONFIG_H_
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:157