mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
qq so close to perfect
This commit is contained in:
parent
27174aba9c
commit
47f29db964
|
@ -78,7 +78,7 @@ namespace sol {
|
||||||
static int push(lua_State* L, constructor_wrapper<Fxs...> c) {
|
static int push(lua_State* L, constructor_wrapper<Fxs...> c) {
|
||||||
lua_CFunction cf = call_detail::call_user<T, false, false>;
|
lua_CFunction cf = call_detail::call_user<T, false, false>;
|
||||||
int closures = stack::push(L, make_user(std::move(c)));
|
int closures = stack::push(L, make_user(std::move(c)));
|
||||||
return stack::push(L, c_closure(cf, 1));
|
return stack::push(L, c_closure(cf, closures));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ namespace sol {
|
||||||
struct add_destructor_tag {};
|
struct add_destructor_tag {};
|
||||||
struct check_destructor_tag {};
|
struct check_destructor_tag {};
|
||||||
struct verified_tag {} const verified{};
|
struct verified_tag {} const verified{};
|
||||||
struct simple_tag {} const simple;
|
struct simple_tag {} const simple{};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct is_constructor : std::false_type {};
|
struct is_constructor : std::false_type {};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user