|
|
|
@ -20,8 +20,8 @@
|
|
|
|
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
|
|
// This file was generated with a script.
|
|
|
|
|
// Generated 2022-04-03 15:48:33.299725 UTC
|
|
|
|
|
// This header was generated with sol v4.0.0-alpha (revision 50b62c93)
|
|
|
|
|
// Generated 2022-06-25 08:14:19.328625 UTC
|
|
|
|
|
// This header was generated with sol v3.3.0 (revision eba86625)
|
|
|
|
|
// https://github.com/ThePhD/sol2
|
|
|
|
|
|
|
|
|
|
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
|
|
|
@ -42,10 +42,21 @@
|
|
|
|
|
#define SOL_VERSION_STRING "3.2.3"
|
|
|
|
|
#define SOL_VERSION ((SOL_VERSION_MAJOR * 100000) + (SOL_VERSION_MINOR * 100) + (SOL_VERSION_PATCH))
|
|
|
|
|
|
|
|
|
|
#define SOL_IS_ON(OP_SYMBOL) ((3 OP_SYMBOL 3) != 0)
|
|
|
|
|
#define SOL_IS_OFF(OP_SYMBOL) ((3 OP_SYMBOL 3) == 0)
|
|
|
|
|
#define SOL_IS_DEFAULT_ON(OP_SYMBOL) ((3 OP_SYMBOL 3) > 3)
|
|
|
|
|
#define SOL_IS_DEFAULT_OFF(OP_SYMBOL) ((3 OP_SYMBOL 3 OP_SYMBOL 3) < 0)
|
|
|
|
|
#define SOL_TOKEN_TO_STRING_POST_EXPANSION_I_(_TOKEN) #_TOKEN
|
|
|
|
|
#define SOL_TOKEN_TO_STRING_I_(_TOKEN) SOL_TOKEN_TO_STRING_POST_EXPANSION_I_(_TOKEN)
|
|
|
|
|
|
|
|
|
|
#define SOL_CONCAT_TOKENS_POST_EXPANSION_I_(_LEFT, _RIGHT) _LEFT##_RIGHT
|
|
|
|
|
#define SOL_CONCAT_TOKENS_I_(_LEFT, _RIGHT) SOL_CONCAT_TOKENS_POST_EXPANSION_I_(_LEFT, _RIGHT)
|
|
|
|
|
|
|
|
|
|
#define SOL_RAW_IS_ON(OP_SYMBOL) ((3 OP_SYMBOL 3) != 0)
|
|
|
|
|
#define SOL_RAW_IS_OFF(OP_SYMBOL) ((3 OP_SYMBOL 3) == 0)
|
|
|
|
|
#define SOL_RAW_IS_DEFAULT_ON(OP_SYMBOL) ((3 OP_SYMBOL 3) > 3)
|
|
|
|
|
#define SOL_RAW_IS_DEFAULT_OFF(OP_SYMBOL) ((3 OP_SYMBOL 3 OP_SYMBOL 3) < 0)
|
|
|
|
|
|
|
|
|
|
#define SOL_IS_ON(OP_SYMBOL) SOL_RAW_IS_ON(OP_SYMBOL ## _I_)
|
|
|
|
|
#define SOL_IS_OFF(OP_SYMBOL) SOL_RAW_IS_OFF(OP_SYMBOL ## _I_)
|
|
|
|
|
#define SOL_IS_DEFAULT_ON(OP_SYMBOL) SOL_RAW_IS_DEFAULT_ON(OP_SYMBOL ## _I_)
|
|
|
|
|
#define SOL_IS_DEFAULT_OFF(OP_SYMBOL) SOL_RAW_IS_DEFAULT_OFF(OP_SYMBOL ## _I_)
|
|
|
|
|
|
|
|
|
|
#define SOL_ON |
|
|
|
|
|
#define SOL_OFF ^
|
|
|
|
@ -76,7 +87,7 @@
|
|
|
|
|
#define SOL_BUILD_C_MODE_I_ SOL_DEFAULT_OFF
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_C_MODE_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_C_MODE)
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <limits.h>
|
|
|
|
@ -231,9 +242,9 @@
|
|
|
|
|
#define SOL_DEBUG_BUILD_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#elif !defined(NDEBUG)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX_I_) && defined(_DEBUG)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX) && defined(_DEBUG)
|
|
|
|
|
#define SOL_DEBUG_BUILD_I_ SOL_ON
|
|
|
|
|
#elif (SOL_IS_ON(SOL_COMPILER_CLANG_I_) || SOL_IS_ON(SOL_COMPILER_GCC_I_)) && !defined(__OPTIMIZE__)
|
|
|
|
|
#elif (SOL_IS_ON(SOL_COMPILER_CLANG) || SOL_IS_ON(SOL_COMPILER_GCC)) && !defined(__OPTIMIZE__)
|
|
|
|
|
#define SOL_DEBUG_BUILD_I_ SOL_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_DEBUG_BUILD_I_ SOL_OFF
|
|
|
|
@ -248,13 +259,13 @@
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_EXCEPTIONS_I_ SOL_ON
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX)
|
|
|
|
|
#if !defined(_CPPUNWIND)
|
|
|
|
|
#define SOL_EXCEPTIONS_I_ SOL_OFF
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_EXCEPTIONS_I_ SOL_ON
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_CLANG_I_) || SOL_IS_ON(SOL_COMPILER_GCC_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_CLANG) || SOL_IS_ON(SOL_COMPILER_GCC)
|
|
|
|
|
#if !defined(__EXCEPTIONS)
|
|
|
|
|
#define SOL_EXCEPTIONS_I_ SOL_OFF
|
|
|
|
|
#else
|
|
|
|
@ -270,13 +281,13 @@
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_RTTI_I_ SOL_ON
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX)
|
|
|
|
|
#if !defined(_CPPRTTI)
|
|
|
|
|
#define SOL_RTTI_I_ SOL_OFF
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_RTTI_I_ SOL_ON
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_CLANG_I_) || SOL_IS_ON(SOL_COMPILER_GCC_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_CLANG) || SOL_IS_ON(SOL_COMPILER_GCC)
|
|
|
|
|
#if !defined(__GXX_RTTI)
|
|
|
|
|
#define SOL_RTTI_I_ SOL_OFF
|
|
|
|
|
#else
|
|
|
|
@ -313,9 +324,9 @@
|
|
|
|
|
#define SOL_SAFE_GETTER_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_GETTER_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_GETTER_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_GETTER_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -329,9 +340,9 @@
|
|
|
|
|
#define SOL_SAFE_USERTYPE_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_USERTYPE_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_USERTYPE_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_USERTYPE_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -345,9 +356,9 @@
|
|
|
|
|
#define SOL_SAFE_REFERENCES_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_REFERENCES_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_REFERENCES_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_REFERENCES_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -367,9 +378,9 @@
|
|
|
|
|
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_FUNCTION_OBJECTS_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -383,9 +394,9 @@
|
|
|
|
|
#define SOL_SAFE_FUNCTION_CALLS_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_FUNCTION_CALLS_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_FUNCTION_CALLS_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_FUNCTION_CALLS_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -399,9 +410,9 @@
|
|
|
|
|
#define SOL_SAFE_PROXIES_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_PROXIES_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_PROXIES_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_PROXIES_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -415,9 +426,9 @@
|
|
|
|
|
#define SOL_SAFE_NUMERICS_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_NUMERICS_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_NUMERICS_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_NUMERICS_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -430,7 +441,7 @@
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_ALL_INTEGER_VALUES_FIT_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#elif !SOL_IS_DEFAULT_OFF(SOL_SAFE_NUMERICS_I_) && SOL_IS_OFF(SOL_SAFE_NUMERICS_I_)
|
|
|
|
|
#elif !SOL_IS_DEFAULT_OFF(SOL_SAFE_NUMERICS) && SOL_IS_OFF(SOL_SAFE_NUMERICS)
|
|
|
|
|
// if numerics is intentionally turned off, flip this on
|
|
|
|
|
#define SOL_ALL_INTEGER_VALUES_FIT_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
@ -445,9 +456,9 @@
|
|
|
|
|
#define SOL_SAFE_STACK_CHECK_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_SAFE_STACK_CHECK_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_SAFE_STACK_CHECK_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_SAFE_STACK_CHECK_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -467,11 +478,11 @@
|
|
|
|
|
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_SAFE_NUMERICS_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_SAFE_NUMERICS)
|
|
|
|
|
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_NUMBER_PRECISION_CHECKS_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -549,7 +560,7 @@
|
|
|
|
|
#define SOL_STD_VARIANT_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_CLANG_I_) && SOL_IS_ON(SOL_PLATFORM_APPLE_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_CLANG) && SOL_IS_ON(SOL_PLATFORM_APPLE)
|
|
|
|
|
#if defined(__has_include)
|
|
|
|
|
#if __has_include(<variant>)
|
|
|
|
|
#define SOL_STD_VARIANT_I_ SOL_DEFAULT_ON
|
|
|
|
@ -573,7 +584,7 @@
|
|
|
|
|
#else
|
|
|
|
|
#if defined(__cpp_noexcept_function_type)
|
|
|
|
|
#define SOL_USE_NOEXCEPT_FUNCTION_TYPE_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX_I_) && (defined(_MSVC_LANG) && (_MSVC_LANG < 201403L))
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX) && (defined(_MSVC_LANG) && (_MSVC_LANG < 201403L))
|
|
|
|
|
// There is a bug in the VC++ compiler??
|
|
|
|
|
// on /std:c++latest under x86 conditions (VS 15.5.2),
|
|
|
|
|
// compiler errors are tossed for noexcept markings being on function types
|
|
|
|
@ -612,9 +623,9 @@
|
|
|
|
|
#define SOL_PRINT_ERRORS_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_ALL_SAFETIES_ON)
|
|
|
|
|
#define SOL_PRINT_ERRORS_I_ SOL_ON
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DEBUG_BUILD)
|
|
|
|
|
#define SOL_PRINT_ERRORS_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_PRINT_ERRORS_I_ SOL_OFF
|
|
|
|
@ -771,7 +782,7 @@
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_MINGW_CCTYPE_IS_POISONED_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_MINGW_I_) && defined(__GNUC__) && (__GNUC__ < 6)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_MINGW) && defined(__GNUC__) && (__GNUC__ < 6)
|
|
|
|
|
// MinGW is off its rocker in some places...
|
|
|
|
|
#define SOL_MINGW_CCTYPE_IS_POISONED_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
@ -792,7 +803,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if SOL_IS_ON(SOL_USE_BOOST_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_USE_BOOST)
|
|
|
|
|
#include <boost/version.hpp>
|
|
|
|
|
|
|
|
|
|
#if BOOST_VERSION >= 107500 // Since Boost 1.75.0 boost::none is constexpr
|
|
|
|
@ -835,10 +846,10 @@
|
|
|
|
|
|
|
|
|
|
#define SOL_PROLOGUE_I_ 1
|
|
|
|
|
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE)
|
|
|
|
|
#define _FWD(...) static_cast<decltype( __VA_ARGS__ )&&>( __VA_ARGS__ )
|
|
|
|
|
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_GCC_I_) || SOL_IS_ON(SOL_COMPILER_CLANG_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_GCC) || SOL_IS_ON(SOL_COMPILER_CLANG)
|
|
|
|
|
#define _MOVE(...) static_cast<__typeof( __VA_ARGS__ )&&>( __VA_ARGS__ )
|
|
|
|
|
#else
|
|
|
|
|
#include <type_traits>
|
|
|
|
@ -857,7 +868,7 @@
|
|
|
|
|
#undef SOL_PROLOGUE_I_
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE)
|
|
|
|
|
#undef _FWD
|
|
|
|
|
#undef _MOVE
|
|
|
|
|
#endif
|
|
|
|
@ -872,7 +883,7 @@
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_DLL_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX_I_) && (defined(DLL_) || defined(_DLL))
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_VCXX) && (defined(DLL_) || defined(_DLL))
|
|
|
|
|
#define SOL_DLL_I_ SOL_DEFAULT_ON
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_DLL_I_ SOL_DEFAULT_OFF
|
|
|
|
@ -894,7 +905,7 @@
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_BUILD_I_ SOL_OFF
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY)
|
|
|
|
|
#define SOL_BUILD_I_ SOL_DEFAULT_OFF
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_BUILD_I_ SOL_DEFAULT_ON
|
|
|
|
@ -913,7 +924,7 @@
|
|
|
|
|
#if defined(SOL_C_FUNCTION_LINKAGE)
|
|
|
|
|
#define SOL_C_FUNCTION_LINKAGE_I_ SOL_C_FUNCTION_LINKAGE
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE)
|
|
|
|
|
// C++
|
|
|
|
|
#define SOL_C_FUNCTION_LINKAGE_I_ extern "C"
|
|
|
|
|
#else
|
|
|
|
@ -925,12 +936,12 @@
|
|
|
|
|
#if defined(SOL_API_LINKAGE)
|
|
|
|
|
#define SOL_API_LINKAGE_I_ SOL_API_LINKAGE
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_DLL_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX_I_) || SOL_IS_ON(SOL_PLATFORM_WINDOWS_I_) || SOL_IS_ON(SOL_PLATFORM_CYGWIN_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_DLL)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX) || SOL_IS_ON(SOL_PLATFORM_WINDOWS) || SOL_IS_ON(SOL_PLATFORM_CYGWIN)
|
|
|
|
|
// MSVC Compiler; or, Windows, or Cygwin platforms
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD)
|
|
|
|
|
// Building the library
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_GCC_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_GCC)
|
|
|
|
|
// Using GCC
|
|
|
|
|
#define SOL_API_LINKAGE_I_ __attribute__((dllexport))
|
|
|
|
|
#else
|
|
|
|
@ -938,7 +949,7 @@
|
|
|
|
|
#define SOL_API_LINKAGE_I_ __declspec(dllexport)
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_GCC_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_GCC)
|
|
|
|
|
#define SOL_API_LINKAGE_I_ __attribute__((dllimport))
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_API_LINKAGE_I_ __declspec(dllimport)
|
|
|
|
@ -948,9 +959,9 @@
|
|
|
|
|
// extern if building normally on non-MSVC
|
|
|
|
|
#define SOL_API_LINKAGE_I_ extern
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_UNITY_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_UNITY_BUILD)
|
|
|
|
|
// Built-in library, like how stb typical works
|
|
|
|
|
#if SOL_IS_ON(SOL_HEADER_ONLY_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_HEADER_ONLY)
|
|
|
|
|
// Header only, so functions are defined "inline"
|
|
|
|
|
#define SOL_API_LINKAGE_I_ inline
|
|
|
|
|
#else
|
|
|
|
@ -959,7 +970,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
// Normal static library
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_CXX_MODE)
|
|
|
|
|
#define SOL_API_LINKAGE_I_
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_API_LINKAGE_I_ extern
|
|
|
|
@ -993,16 +1004,16 @@
|
|
|
|
|
|
|
|
|
|
#if defined(SOL_FUNC_DECL)
|
|
|
|
|
#define SOL_FUNC_DECL_I_ SOL_FUNC_DECL
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY)
|
|
|
|
|
#define SOL_FUNC_DECL_I_
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD)
|
|
|
|
|
#define SOL_FUNC_DECL_I_ extern __declspec(dllexport)
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_FUNC_DECL_I_ extern __declspec(dllimport)
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC_I_) || SOL_IS_ON(SOL_COMPILER_CLANG_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC) || SOL_IS_ON(SOL_COMPILER_CLANG)
|
|
|
|
|
#define SOL_FUNC_DECL_I_ extern __attribute__((visibility("default")))
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_FUNC_DECL_I_ extern
|
|
|
|
@ -1011,16 +1022,16 @@
|
|
|
|
|
|
|
|
|
|
#if defined(SOL_FUNC_DEFN)
|
|
|
|
|
#define SOL_FUNC_DEFN_I_ SOL_FUNC_DEFN
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY)
|
|
|
|
|
#define SOL_FUNC_DEFN_I_ inline
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD)
|
|
|
|
|
#define SOL_FUNC_DEFN_I_ __declspec(dllexport)
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_FUNC_DEFN_I_ __declspec(dllimport)
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC_I_) || SOL_IS_ON(SOL_COMPILER_CLANG_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC) || SOL_IS_ON(SOL_COMPILER_CLANG)
|
|
|
|
|
#define SOL_FUNC_DEFN_I_ __attribute__((visibility("default")))
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_FUNC_DEFN_I_
|
|
|
|
@ -1029,16 +1040,16 @@
|
|
|
|
|
|
|
|
|
|
#if defined(SOL_HIDDEN_FUNC_DECL)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DECL_I_ SOL_HIDDEN_FUNC_DECL
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DECL_I_
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DECL_I_ extern __declspec(dllexport)
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DECL_I_ extern __declspec(dllimport)
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC_I_) || SOL_IS_ON(SOL_COMPILER_CLANG_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC) || SOL_IS_ON(SOL_COMPILER_CLANG)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DECL_I_ extern __attribute__((visibility("default")))
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DECL_I_ extern
|
|
|
|
@ -1047,16 +1058,16 @@
|
|
|
|
|
|
|
|
|
|
#if defined(SOL_HIDDEN_FUNC_DEFN)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DEFN_I_ SOL_HIDDEN_FUNC_DEFN
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_HEADER_ONLY)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DEFN_I_ inline
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_DLL)
|
|
|
|
|
#if SOL_IS_ON(SOL_COMPILER_VCXX)
|
|
|
|
|
#if SOL_IS_ON(SOL_BUILD)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DEFN_I_
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DEFN_I_
|
|
|
|
|
#endif
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC_I_) || SOL_IS_ON(SOL_COMPILER_CLANG_I_)
|
|
|
|
|
#elif SOL_IS_ON(SOL_COMPILER_GCC) || SOL_IS_ON(SOL_COMPILER_CLANG)
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DEFN_I_ __attribute__((visibility("hidden")))
|
|
|
|
|
#else
|
|
|
|
|
#define SOL_HIDDEN_FUNC_DEFN_I_
|
|
|
|
@ -1071,7 +1082,7 @@
|
|
|
|
|
#include <type_traits>
|
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
|
|
#if SOL_IS_ON(SOL_USE_CXX_LUA_I_) || SOL_IS_ON(SOL_USE_CXX_LUAJIT_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_USE_CXX_LUA) || SOL_IS_ON(SOL_USE_CXX_LUAJIT)
|
|
|
|
|
struct lua_State;
|
|
|
|
|
#else
|
|
|
|
|
extern "C" {
|
|
|
|
@ -1158,7 +1169,7 @@ namespace sol {
|
|
|
|
|
using main_protected_function = main_safe_function;
|
|
|
|
|
using stack_protected_function = stack_safe_function;
|
|
|
|
|
using stack_aligned_protected_function = stack_aligned_safe_function;
|
|
|
|
|
#if SOL_IS_ON(SOL_SAFE_FUNCTION_OBJECTS_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_SAFE_FUNCTION_OBJECTS)
|
|
|
|
|
using function = protected_function;
|
|
|
|
|
using main_function = main_protected_function;
|
|
|
|
|
using stack_function = stack_protected_function;
|
|
|
|
@ -1174,7 +1185,7 @@ namespace sol {
|
|
|
|
|
struct unsafe_function_result;
|
|
|
|
|
struct protected_function_result;
|
|
|
|
|
using safe_function_result = protected_function_result;
|
|
|
|
|
#if SOL_IS_ON(SOL_SAFE_FUNCTION_OBJECTS_I_)
|
|
|
|
|
#if SOL_IS_ON(SOL_SAFE_FUNCTION_OBJECTS)
|
|
|
|
|
using function_result = safe_function_result;
|
|
|
|
|
#else
|
|
|
|
|
using function_result = unsafe_function_result;
|
|
|
|
@ -1275,7 +1286,7 @@ namespace sol {
|
|
|
|
|
struct record;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if SOL_IS_OFF(SOL_USE_BOOST_I_)
|
|
|
|
|
#if SOL_IS_OFF(SOL_USE_BOOST)
|
|
|
|
|
template <class T>
|
|
|
|
|
class optional;
|
|
|
|
|
|
|
|
|
|