mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
update call
This commit is contained in:
parent
1f90b049f2
commit
091ca39438
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2018-11-09 17:41:04.453384 UTC
|
// Generated 2018-11-09 18:52:51.075276 UTC
|
||||||
// This header was generated with sol v2.20.4 (revision 47bbe98)
|
// This header was generated with sol v2.20.4 (revision 1f90b04)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -13141,7 +13141,7 @@ namespace sol {
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, bool checked, bool clean_stack, typename... TypeLists>
|
template <typename T, bool checked, bool clean_stack, typename... TypeLists>
|
||||||
inline int construct(lua_State* L) {
|
inline int construct_trampolined(lua_State* L) {
|
||||||
static const auto& meta = usertype_traits<T>::metatable();
|
static const auto& meta = usertype_traits<T>::metatable();
|
||||||
int argcount = lua_gettop(L);
|
int argcount = lua_gettop(L);
|
||||||
call_syntax syntax = argcount > 0 ? stack::get_call_syntax(L, usertype_traits<T>::user_metatable(), 1) : call_syntax::dot;
|
call_syntax syntax = argcount > 0 ? stack::get_call_syntax(L, usertype_traits<T>::user_metatable(), 1) : call_syntax::dot;
|
||||||
|
@ -13160,6 +13160,11 @@ namespace sol {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T, bool checked, bool clean_stack, typename... TypeLists>
|
||||||
|
inline int construct(lua_State* L) {
|
||||||
|
return detail::static_trampoline<&construct_trampolined<T, checked, clean_stack, TypeLists...>>(L);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename F, bool is_index, bool is_variable, bool checked, int boost, bool clean_stack, typename = void>
|
template <typename F, bool is_index, bool is_variable, bool checked, int boost, bool clean_stack, typename = void>
|
||||||
struct agnostic_lua_call_wrapper {
|
struct agnostic_lua_call_wrapper {
|
||||||
typedef wrapper<meta::unqualified_t<F>> wrap;
|
typedef wrapper<meta::unqualified_t<F>> wrap;
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2018-11-09 17:41:04.668612 UTC
|
// Generated 2018-11-09 18:52:51.285820 UTC
|
||||||
// This header was generated with sol v2.20.4 (revision 47bbe98)
|
// This header was generated with sol v2.20.4 (revision 1f90b04)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||||
|
|
|
@ -208,7 +208,7 @@ namespace sol {
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, bool checked, bool clean_stack, typename... TypeLists>
|
template <typename T, bool checked, bool clean_stack, typename... TypeLists>
|
||||||
inline int construct(lua_State* L) {
|
inline int construct_trampolined(lua_State* L) {
|
||||||
static const auto& meta = usertype_traits<T>::metatable();
|
static const auto& meta = usertype_traits<T>::metatable();
|
||||||
int argcount = lua_gettop(L);
|
int argcount = lua_gettop(L);
|
||||||
call_syntax syntax = argcount > 0 ? stack::get_call_syntax(L, usertype_traits<T>::user_metatable(), 1) : call_syntax::dot;
|
call_syntax syntax = argcount > 0 ? stack::get_call_syntax(L, usertype_traits<T>::user_metatable(), 1) : call_syntax::dot;
|
||||||
|
@ -227,6 +227,11 @@ namespace sol {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T, bool checked, bool clean_stack, typename... TypeLists>
|
||||||
|
inline int construct(lua_State* L) {
|
||||||
|
return detail::static_trampoline<&construct_trampolined<T, checked, clean_stack, TypeLists...>>(L);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename F, bool is_index, bool is_variable, bool checked, int boost, bool clean_stack, typename = void>
|
template <typename F, bool is_index, bool is_variable, bool checked, int boost, bool clean_stack, typename = void>
|
||||||
struct agnostic_lua_call_wrapper {
|
struct agnostic_lua_call_wrapper {
|
||||||
typedef wrapper<meta::unqualified_t<F>> wrap;
|
typedef wrapper<meta::unqualified_t<F>> wrap;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user