update call

This commit is contained in:
ThePhD 2018-11-09 10:53:46 -08:00
parent 1f90b049f2
commit 091ca39438
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 18 additions and 8 deletions

View File

@ -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 2018-11-09 17:41:04.453384 UTC
// This header was generated with sol v2.20.4 (revision 47bbe98)
// Generated 2018-11-09 18:52:51.075276 UTC
// This header was generated with sol v2.20.4 (revision 1f90b04)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP
@ -13141,7 +13141,7 @@ namespace sol {
}
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();
int argcount = lua_gettop(L);
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;
}
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>
struct agnostic_lua_call_wrapper {
typedef wrapper<meta::unqualified_t<F>> wrap;

View File

@ -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 2018-11-09 17:41:04.668612 UTC
// This header was generated with sol v2.20.4 (revision 47bbe98)
// Generated 2018-11-09 18:52:51.285820 UTC
// This header was generated with sol v2.20.4 (revision 1f90b04)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

View File

@ -208,7 +208,7 @@ namespace sol {
}
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();
int argcount = lua_gettop(L);
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;
}
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>
struct agnostic_lua_call_wrapper {
typedef wrapper<meta::unqualified_t<F>> wrap;