|
31 | 31 | // clang-format off
|
32 | 32 |
|
33 | 33 | #define SOL_VERSION_MAJOR 3
|
34 |
| -#define SOL_VERSION_MINOR 5 |
35 |
| -#define SOL_VERSION_PATCH 0 |
36 |
| -#define SOL_VERSION_STRING "3.5.0" |
| 34 | +#define SOL_VERSION_MINOR 2 |
| 35 | +#define SOL_VERSION_PATCH 3 |
| 36 | +#define SOL_VERSION_STRING "3.2.3" |
37 | 37 | #define SOL_VERSION ((SOL_VERSION_MAJOR * 100000) + (SOL_VERSION_MINOR * 100) + (SOL_VERSION_PATCH))
|
38 | 38 |
|
39 | 39 | #define SOL_IS_ON(OP_SYMBOL) ((3 OP_SYMBOL 3) != 0)
|
|
179 | 179 | #define SOL_RTTI_I_ SOL_DEFAULT_ON
|
180 | 180 | #endif
|
181 | 181 |
|
182 |
| -#if defined(SOL_NO_THREAD_LOCAL) && (SOL_NO_THREAD_LOCAL != 0) |
183 |
| - #define SOL_USE_THREAD_LOCAL_I_ SOL_OFF |
| 182 | +#if defined(SOL_NO_THREAD_LOCAL) |
| 183 | + #if SOL_NO_THREAD_LOCAL != 0 |
| 184 | + #define SOL_USE_THREAD_LOCAL_I_ SOL_OFF |
| 185 | + #else |
| 186 | + #define SOL_USE_THREAD_LOCAL_I_ SOL_ON |
| 187 | + #endif |
184 | 188 | #else
|
185 | 189 | #define SOL_USE_THREAD_LOCAL_I_ SOL_DEFAULT_ON
|
186 | 190 | #endif // thread_local keyword is bjorked on some platforms
|
187 | 191 |
|
188 |
| -#if defined(SOL_ALL_SAFETIES_ON) && (SOL_ALL_SAFETIES_ON != 0) |
189 |
| - #define SOL_ALL_SAFETIES_ON_I_ SOL_ON |
| 192 | +#if defined(SOL_ALL_SAFETIES_ON) |
| 193 | + #if SOL_ALL_SAFETIES_ON != 0 |
| 194 | + #define SOL_ALL_SAFETIES_ON_I_ SOL_ON |
| 195 | + #else |
| 196 | + #define SOL_ALL_SAFETIES_ON_I_ SOL_FF |
| 197 | + #endif |
190 | 198 | #else
|
191 | 199 | #define SOL_ALL_SAFETIES_ON_I_ SOL_DEFAULT_OFF
|
192 | 200 | #endif
|
193 | 201 |
|
194 |
| -#if defined(SOL_SAFE_GETTER) && (SOL_SAFE_GETTER != 0) |
195 |
| - #define SOL_SAFE_GETTER_I_ SOL_ON |
| 202 | +#if defined(SOL_SAFE_GETTER) |
| 203 | + #if SOL_SAFE_GETTER != 0 |
| 204 | + #define SOL_SAFE_GETTER_I_ SOL_ON |
| 205 | + #else |
| 206 | + #define SOL_SAFE_GETTER_I_ SOL_OFF |
| 207 | + #endif |
196 | 208 | #else
|
197 | 209 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
198 | 210 | #define SOL_SAFE_GETTER_I_ SOL_ON
|
|
203 | 215 | #endif
|
204 | 216 | #endif
|
205 | 217 |
|
206 |
| -#if defined(SOL_SAFE_USERTYPE) && (SOL_SAFE_USERTYPE != 0) |
207 |
| - #define SOL_SAFE_USERTYPE_I_ SOL_ON |
| 218 | +#if defined(SOL_SAFE_USERTYPE) |
| 219 | + #if SOL_SAFE_USERTYPE != 0 |
| 220 | + #define SOL_SAFE_USERTYPE_I_ SOL_ON |
| 221 | + #else |
| 222 | + #define SOL_SAFE_USERTYPE_I_ SOL_OFF |
| 223 | + #endif |
208 | 224 | #else
|
209 | 225 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
210 | 226 | #define SOL_SAFE_USERTYPE_I_ SOL_ON
|
|
215 | 231 | #endif
|
216 | 232 | #endif
|
217 | 233 |
|
218 |
| -#if defined(SOL_SAFE_REFERENCES) && (SOL_SAFE_REFERENCES != 0) |
219 |
| - #define SOL_SAFE_REFERENCES_I_ SOL_ON |
| 234 | +#if defined(SOL_SAFE_REFERENCES) |
| 235 | + #if SOL_SAFE_REFERENCES != 0 |
| 236 | + #define SOL_SAFE_REFERENCES_I_ SOL_ON |
| 237 | + #else |
| 238 | + #define SOL_SAFE_REFERENCES_I_ SOL_OFF |
| 239 | + #endif |
220 | 240 | #else
|
221 | 241 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
222 | 242 | #define SOL_SAFE_REFERENCES_I_ SOL_ON
|
|
227 | 247 | #endif
|
228 | 248 | #endif
|
229 | 249 |
|
230 |
| -#if (defined(SOL_SAFE_FUNCTIONS) && (SOL_SAFE_FUNCTIONS != 0)) \ |
231 |
| - || (defined(SOL_SAFE_FUNCTION_OBJECTS) && (SOL_SAFE_FUNCTION_OBJECTS != 0)) |
232 |
| - #define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_ON |
| 250 | +#if defined(SOL_SAFE_FUNCTIONS) |
| 251 | + #if SOL_SAFE_FUNCTIONS != 0 |
| 252 | + #define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_ON |
| 253 | + #else |
| 254 | + #define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_OFF |
| 255 | + #endif |
| 256 | +#elif defined (SOL_SAFE_FUNCTION_OBJECTS) |
| 257 | + #if SOL_SAFE_FUNCTION_OBJECTS != 0 |
| 258 | + #define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_ON |
| 259 | + #else |
| 260 | + #define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_OFF |
| 261 | + #endif |
233 | 262 | #else
|
234 | 263 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
235 | 264 | #define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_ON
|
|
240 | 269 | #endif
|
241 | 270 | #endif
|
242 | 271 |
|
243 |
| -#if defined(SOL_SAFE_FUNCTION_CALLS) && (SOL_SAFE_FUNCTION_CALLS != 0) |
244 |
| - #define SOL_SAFE_FUNCTION_CALLS_I_ SOL_ON |
| 272 | +#if defined(SOL_SAFE_FUNCTION_CALLS) |
| 273 | + #if SOL_SAFE_FUNCTION_CALLS != 0 |
| 274 | + #define SOL_SAFE_FUNCTION_CALLS_I_ SOL_ON |
| 275 | + #else |
| 276 | + #define SOL_SAFE_FUNCTION_CALLS_I_ SOL_OFF |
| 277 | + #endif |
245 | 278 | #else
|
246 | 279 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
247 | 280 | #define SOL_SAFE_FUNCTION_CALLS_I_ SOL_ON
|
|
252 | 285 | #endif
|
253 | 286 | #endif
|
254 | 287 |
|
255 |
| -#if defined(SOL_SAFE_PROXIES) && (SOL_SAFE_PROXIES != 0) |
256 |
| - #define SOL_SAFE_PROXIES_I_ SOL_ON |
| 288 | +#if defined(SOL_SAFE_PROXIES) |
| 289 | + #if SOL_SAFE_PROXIES != 0 |
| 290 | + #define SOL_SAFE_PROXIES_I_ SOL_ON |
| 291 | + #else |
| 292 | + #define SOL_SAFE_PROXIES_I_ SOL_OFF |
| 293 | + #endif |
257 | 294 | #else
|
258 | 295 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
259 | 296 | #define SOL_SAFE_PROXIES_I_ SOL_ON
|
|
264 | 301 | #endif
|
265 | 302 | #endif
|
266 | 303 |
|
267 |
| -#if defined(SOL_SAFE_NUMERICS) && (SOL_SAFE_NUMERICS != 0) |
268 |
| - #define SOL_SAFE_NUMERICS_I_ SOL_ON |
| 304 | +#if defined(SOL_SAFE_NUMERICS) |
| 305 | + #if SOL_SAFE_NUMERICS != 0 |
| 306 | + #define SOL_SAFE_NUMERICS_I_ SOL_ON |
| 307 | + #else |
| 308 | + #define SOL_SAFE_NUMERICS_I_ SOL_OFF |
| 309 | + #endif |
269 | 310 | #else
|
270 | 311 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
271 | 312 | #define SOL_SAFE_NUMERICS_I_ SOL_ON
|
|
276 | 317 | #endif
|
277 | 318 | #endif
|
278 | 319 |
|
279 |
| -#if defined(SOL_SAFE_STACK_CHECK) && (SOL_SAFE_STACK_CHECK != 0) |
280 |
| - #define SOL_SAFE_STACK_CHECK_I_ SOL_ON |
| 320 | +#if defined(SOL_SAFE_STACK_CHECK) |
| 321 | + #if SOL_SAFE_STACK_CHECK != 0 |
| 322 | + #define SOL_SAFE_STACK_CHECK_I_ SOL_ON |
| 323 | + #else |
| 324 | + #define SOL_SAFE_STACK_CHECK_I_ SOL_OFF |
| 325 | + #endif |
281 | 326 | #else
|
282 | 327 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
283 | 328 | #define SOL_SAFE_STACK_CHECK_I_ SOL_ON
|
|
288 | 333 | #endif
|
289 | 334 | #endif
|
290 | 335 |
|
291 |
| -#if (defined(SOL_NO_CHECK_NUMBER_PRECISION) && (SOL_NO_CHECK_NUMBER_PRECISION != 0)) \ |
292 |
| - || (defined(SOL_NO_CHECKING_NUMBER_PRECISION) && (SOL_NO_CHECKING_NUMBER_PRECISION != 0)) |
293 |
| - #define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_OFF |
| 336 | +#if defined(SOL_NO_CHECK_NUMBER_PRECISION) |
| 337 | + #if SOL_NO_CHECK_NUMBER_PRECISION != 0 |
| 338 | + #define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_OFF |
| 339 | + #else |
| 340 | + #define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON |
| 341 | + #endif |
| 342 | +#elif defined(SOL_NO_CHECKING_NUMBER_PRECISION) |
| 343 | + #if SOL_NO_CHECKING_NUMBER_PRECISION != 0 |
| 344 | + #define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_OFF |
| 345 | + #else |
| 346 | + #define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON |
| 347 | + #endif |
294 | 348 | #else
|
295 | 349 | #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
296 | 350 | #define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON
|
|
313 | 367 | #define SOL_STRINGS_ARE_NUMBERS_I_ SOL_DEFAULT_OFF
|
314 | 368 | #endif
|
315 | 369 |
|
316 |
| -#if defined(SOL_ENABLE_INTEROP) && (SOL_ENABLE_INTEROP != 0) \ |
317 |
| - || defined(SOL_USE_INTEROP) && (SOL_USE_INTEROP != 0) |
318 |
| - #define SOL_USE_INTEROP_I_ SOL_ON |
| 370 | +#if defined(SOL_ENABLE_INTEROP) |
| 371 | + #if SOL_ENABLE_INTEROP != 0 |
| 372 | + #define SOL_USE_INTEROP_I_ SOL_ON |
| 373 | + #else |
| 374 | + #define SOL_USE_INTEROP_I_ SOL_OFF |
| 375 | + #endif |
| 376 | +#elif defined(SOL_USE_INTEROP) |
| 377 | + #if SOL_USE_INTEROP != 0 |
| 378 | + #define SOL_USE_INTEROP_I_ SOL_ON |
| 379 | + #else |
| 380 | + #define SOL_USE_INTEROP_I_ SOL_OFF |
| 381 | + #endif |
319 | 382 | #else
|
320 | 383 | #define SOL_USE_INTEROP_I_ SOL_DEFAULT_OFF
|
321 | 384 | #endif
|
|
437 | 500 | #endif
|
438 | 501 | #endif
|
439 | 502 |
|
440 |
| -#if defined(SOL_DEFAULT_PASS_ON_ERROR) && (SOL_DEFAULT_PASS_ON_ERROR != 0) |
441 |
| - #define SOL_DEFAULT_PASS_ON_ERROR_I_ SOL_ON |
442 |
| -#else |
443 |
| - #if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_) |
| 503 | +#if defined(SOL_DEFAULT_PASS_ON_ERROR) |
| 504 | + #if (SOL_DEFAULT_PASS_ON_ERROR != 0) |
444 | 505 | #define SOL_DEFAULT_PASS_ON_ERROR_I_ SOL_ON
|
445 |
| - #elif SOL_IS_ON(SOL_DEBUG_BUILD_I_) |
446 |
| - #define SOL_DEFAULT_PASS_ON_ERROR_I_ SOL_DEFAULT_ON |
447 | 506 | #else
|
448 | 507 | #define SOL_DEFAULT_PASS_ON_ERROR_I_ SOL_OFF
|
449 | 508 | #endif
|
| 509 | +#else |
| 510 | + #define SOL_DEFAULT_PASS_ON_ERROR_I_ SOL_DEFAULT_OFF |
450 | 511 | #endif
|
451 | 512 |
|
452 | 513 | #if defined(SOL_USING_CXX_LUA)
|
|
0 commit comments