Go to the documentation of this file.
8 #ifndef SKETCHUP_COMMON_H_
9 #define SKETCHUP_COMMON_H_
72 #if defined(__APPLE__) || defined(__LINUX__)
73 #ifndef FOUNDATION_IMPORT
75 #endif // FOUNDATION_IMPORT
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 #if defined WIN32 && !defined GSLAPI_NO_EXPORTS
86 #ifdef GSLAPI_API_EXPORTS
87 #define SU_EXPORT __declspec(dllexport)
89 #define SU_EXPORT __declspec(dllimport)
90 #endif // GSLAPI_API_EXPORTS
93 #if defined __APPLE__ && !defined GSLAPI_NO_EXPORTS
95 #define SU_EXPORT __attribute__((visibility("default")))
96 #endif // #if defined __APPLE__
98 #define DEFINE_SU_TYPE(TYPENAME) \
103 #endif // DOXYGEN_SHOULD_SKIP_THIS
108 #define SU_RESULT SU_EXPORT enum SUResult
121 #define SUIsValid(VARIABLE) ((VARIABLE).ptr != 0)
127 #define SUIsInvalid(VARIABLE) ((VARIABLE).ptr == 0)
132 #define SUSetInvalid(VARIABLE) (VARIABLE).ptr = 0
137 #define SUAreEqual(VARIABLE1, VARIABLE2) ((VARIABLE1).ptr == (VARIABLE2).ptr)
141 #if !defined(__STDC_HOSTED__) || (__STDC_HOSTED__ == 0)
144 typedef __int64 int64_t;
145 typedef __int32 int32_t;
146 typedef __int16 int16_t;
147 typedef unsigned __int32 uint32_t;
149 #error Unsupported compiler!
153 #endif // #if !defined(__STDC_HOSTED__) || (__STDC_HOSTED__ == 0)
166 #ifndef SU_SUPPRESS_DEPRECATION_WARNINGS
168 #define SU_DEPRECATED_FUNCTION(version_num) \
169 __declspec(deprecated("first deprecated in " version_num))
171 #define SU_DEPRECATED_FUNCTION(version_num) \
172 __attribute__((deprecated("first deprecated in " version_num)))
175 #define SU_DEPRECATED_FUNCTION(version_num)
178 #endif // SKETCHUP_COMMON_H_