mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-03-22 04:44:09 +07:00
update sol2 to 3.2.0
This commit is contained in:
1307
headers/3rdparty/sol/traits.hpp
vendored
1307
headers/3rdparty/sol/traits.hpp
vendored
File diff suppressed because it is too large
Load Diff
8
headers/3rdparty/sol/types.hpp
vendored
8
headers/3rdparty/sol/types.hpp
vendored
@@ -1308,7 +1308,13 @@ namespace sol {
|
||||
template <typename T>
|
||||
struct is_automagical
|
||||
: std::integral_constant<bool,
|
||||
std::is_array_v<meta::unqualified_t<T>> || !std::is_same_v<meta::unqualified_t<T>, state> || !std::is_same_v<meta::unqualified_t<T>, state_view>> {
|
||||
#if defined(SOL_CXX17_FEATURES) && SOL_CXX17_FEATURES
|
||||
#if defined(SOL_STD_VARIANT) && SOL_STD_VARIANT != 0
|
||||
!meta::is_specialization_of_v<meta::unqualified_t<T>, std::variant> &&
|
||||
#endif // std::variant borked in places
|
||||
#endif // C++17 Features
|
||||
(std::is_array_v<
|
||||
meta::unqualified_t<T>> || (!std::is_same_v<meta::unqualified_t<T>, state> && !std::is_same_v<meta::unqualified_t<T>, state_view>))> {
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
||||
8
headers/3rdparty/sol/usertype_core.hpp
vendored
8
headers/3rdparty/sol/usertype_core.hpp
vendored
@@ -172,11 +172,11 @@ namespace sol {
|
||||
template <typename X>
|
||||
void set_undefined_methods_on(stack_reference t) {
|
||||
using T = std::remove_pointer_t<X>;
|
||||
|
||||
|
||||
lua_State* L = t.lua_state();
|
||||
|
||||
|
||||
t.push();
|
||||
|
||||
|
||||
detail::lua_reg_table l{};
|
||||
int index = 0;
|
||||
detail::indexed_insert insert_fx(l, index);
|
||||
@@ -185,7 +185,7 @@ namespace sol {
|
||||
l[index] = luaL_Reg{ to_string(meta_function::garbage_collect).c_str(), detail::make_destructor<T>() };
|
||||
}
|
||||
luaL_setfuncs(L, l, 0);
|
||||
|
||||
|
||||
// __type table
|
||||
lua_createtable(L, 0, 2);
|
||||
const std::string& name = detail::demangle<T>();
|
||||
|
||||
Submodule modules/sol2 updated: e26475e75b...b0c74207d8
Reference in New Issue
Block a user