Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre processor syntax error correction, and some simple code formatting #1598

Merged
merged 2 commits into from
Jul 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions include/sol/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
#endif

#if defined(SOL_COMPILER_VCXX)
#if defined(SOL_COMPILER_VCXX != 0)
#if (SOL_COMPILER_VCXX != 0)
#define SOL_COMPILER_VCXX_I_ SOL_ON
#else
#define SOL_COMPILER_VCXX_I_ SOL_OFF
Expand All @@ -110,7 +110,7 @@
#endif

#if defined(SOL_COMPILER_GCC)
#if defined(SOL_COMPILER_GCC != 0)
#if (SOL_COMPILER_GCC != 0)
#define SOL_COMPILER_GCC_I_ SOL_ON
#else
#define SOL_COMPILER_GCC_I_ SOL_OFF
Expand All @@ -122,7 +122,7 @@
#endif

#if defined(SOL_COMPILER_CLANG)
#if defined(SOL_COMPILER_CLANG != 0)
#if (SOL_COMPILER_CLANG != 0)
#define SOL_COMPILER_CLANG_I_ SOL_ON
#else
#define SOL_COMPILER_CLANG_I_ SOL_OFF
Expand All @@ -134,7 +134,7 @@
#endif

#if defined(SOL_COMPILER_EDG)
#if defined(SOL_COMPILER_EDG != 0)
#if (SOL_COMPILER_EDG != 0)
#define SOL_COMPILER_EDG_I_ SOL_ON
#else
#define SOL_COMPILER_EDG_I_ SOL_OFF
Expand Down Expand Up @@ -237,7 +237,7 @@
#define SOL_PLATFORM_BSDLIKE_I_ SOL_OFF

#if defined(SOL_IN_DEBUG_DETECTED)
#if SOL_IN_DEBUG_DETECTED != 0
#if (SOL_IN_DEBUG_DETECTED != 0)
#define SOL_DEBUG_BUILD_I_ SOL_ON
#else
#define SOL_DEBUG_BUILD_I_ SOL_OFF
Expand Down Expand Up @@ -300,7 +300,7 @@
#endif

#if defined(SOL_NO_THREAD_LOCAL)
#if SOL_NO_THREAD_LOCAL != 0
#if (SOL_NO_THREAD_LOCAL != 0)
#define SOL_USE_THREAD_LOCAL_I_ SOL_OFF
#else
#define SOL_USE_THREAD_LOCAL_I_ SOL_ON
Expand All @@ -310,7 +310,7 @@
#endif // thread_local keyword is bjorked on some platforms

#if defined(SOL_ALL_SAFETIES_ON)
#if SOL_ALL_SAFETIES_ON != 0
#if (SOL_ALL_SAFETIES_ON != 0)
#define SOL_ALL_SAFETIES_ON_I_ SOL_ON
#else
#define SOL_ALL_SAFETIES_ON_I_ SOL_OFF
Expand All @@ -320,7 +320,7 @@
#endif

#if defined(SOL_SAFE_GETTER)
#if SOL_SAFE_GETTER != 0
#if (SOL_SAFE_GETTER != 0)
#define SOL_SAFE_GETTER_I_ SOL_ON
#else
#define SOL_SAFE_GETTER_I_ SOL_OFF
Expand All @@ -336,7 +336,7 @@
#endif

#if defined(SOL_SAFE_USERTYPE)
#if SOL_SAFE_USERTYPE != 0
#if (SOL_SAFE_USERTYPE != 0)
#define SOL_SAFE_USERTYPE_I_ SOL_ON
#else
#define SOL_SAFE_USERTYPE_I_ SOL_OFF
Expand All @@ -352,7 +352,7 @@
#endif

#if defined(SOL_SAFE_REFERENCES)
#if SOL_SAFE_REFERENCES != 0
#if (SOL_SAFE_REFERENCES != 0)
#define SOL_SAFE_REFERENCES_I_ SOL_ON
#else
#define SOL_SAFE_REFERENCES_I_ SOL_OFF
Expand All @@ -368,13 +368,13 @@
#endif

#if defined(SOL_SAFE_FUNCTIONS)
#if SOL_SAFE_FUNCTIONS != 0
#if (SOL_SAFE_FUNCTIONS != 0)
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_ON
#else
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_OFF
#endif
#elif defined (SOL_SAFE_FUNCTION_OBJECTS)
#if SOL_SAFE_FUNCTION_OBJECTS != 0
#if (SOL_SAFE_FUNCTION_OBJECTS != 0)
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_ON
#else
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_OFF
Expand All @@ -390,7 +390,7 @@
#endif

#if defined(SOL_SAFE_FUNCTION_CALLS)
#if SOL_SAFE_FUNCTION_CALLS != 0
#if (SOL_SAFE_FUNCTION_CALLS != 0)
#define SOL_SAFE_FUNCTION_CALLS_I_ SOL_ON
#else
#define SOL_SAFE_FUNCTION_CALLS_I_ SOL_OFF
Expand All @@ -406,7 +406,7 @@
#endif

#if defined(SOL_SAFE_PROXIES)
#if SOL_SAFE_PROXIES != 0
#if (SOL_SAFE_PROXIES != 0)
#define SOL_SAFE_PROXIES_I_ SOL_ON
#else
#define SOL_SAFE_PROXIES_I_ SOL_OFF
Expand All @@ -422,7 +422,7 @@
#endif

#if defined(SOL_SAFE_NUMERICS)
#if SOL_SAFE_NUMERICS != 0
#if (SOL_SAFE_NUMERICS != 0)
#define SOL_SAFE_NUMERICS_I_ SOL_ON
#else
#define SOL_SAFE_NUMERICS_I_ SOL_OFF
Expand Down Expand Up @@ -452,7 +452,7 @@
#endif

#if defined(SOL_SAFE_STACK_CHECK)
#if SOL_SAFE_STACK_CHECK != 0
#if (SOL_SAFE_STACK_CHECK != 0)
#define SOL_SAFE_STACK_CHECK_I_ SOL_ON
#else
#define SOL_SAFE_STACK_CHECK_I_ SOL_OFF
Expand All @@ -468,13 +468,13 @@
#endif

#if defined(SOL_NO_CHECK_NUMBER_PRECISION)
#if SOL_NO_CHECK_NUMBER_PRECISION != 0
#if (SOL_NO_CHECK_NUMBER_PRECISION != 0)
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_OFF
#else
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON
#endif
#elif defined(SOL_NO_CHECKING_NUMBER_PRECISION)
#if SOL_NO_CHECKING_NUMBER_PRECISION != 0
#if (SOL_NO_CHECKING_NUMBER_PRECISION != 0)
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_OFF
#else
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON
Expand Down Expand Up @@ -502,13 +502,13 @@
#endif

#if defined(SOL_ENABLE_INTEROP)
#if SOL_ENABLE_INTEROP != 0
#if (SOL_ENABLE_INTEROP != 0)
#define SOL_USE_INTEROP_I_ SOL_ON
#else
#define SOL_USE_INTEROP_I_ SOL_OFF
#endif
#elif defined(SOL_USE_INTEROP)
#if SOL_USE_INTEROP != 0
#if (SOL_USE_INTEROP != 0)
#define SOL_USE_INTEROP_I_ SOL_ON
#else
#define SOL_USE_INTEROP_I_ SOL_OFF
Expand Down Expand Up @@ -598,19 +598,19 @@
#endif
#endif // noexcept is part of a function's type

#if defined(SOL_STACK_STRING_OPTIMIZATION_SIZE) && SOL_STACK_STRING_OPTIMIZATION_SIZE > 0
#if defined(SOL_STACK_STRING_OPTIMIZATION_SIZE) && (SOL_STACK_STRING_OPTIMIZATION_SIZE > 0)
#define SOL_OPTIMIZATION_STRING_CONVERSION_STACK_SIZE_I_ SOL_STACK_STRING_OPTIMIZATION_SIZE
#else
#define SOL_OPTIMIZATION_STRING_CONVERSION_STACK_SIZE_I_ 1024
#endif

#if defined(SOL_ID_SIZE) && SOL_ID_SIZE > 0
#if defined(SOL_ID_SIZE) && (SOL_ID_SIZE > 0)
#define SOL_ID_SIZE_I_ SOL_ID_SIZE
#else
#define SOL_ID_SIZE_I_ 512
#endif

#if defined(LUA_IDSIZE) && LUA_IDSIZE > 0
#if defined(LUA_IDSIZE) && (LUA_IDSIZE > 0)
#define SOL_FILE_ID_SIZE_I_ LUA_IDSIZE
#elif defined(SOL_ID_SIZE) && SOL_ID_SIZE > 0
#define SOL_FILE_ID_SIZE_I_ SOL_FILE_ID_SIZE
Expand Down