mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
The performance went to shit and I need all the perf tools I can get to find out why.
This commit is contained in:
parent
2a07784933
commit
295b7b1a08
|
@ -285,7 +285,7 @@ namespace call_detail {
|
|||
|
||||
template <typename... Args, bool is_index, bool is_variable, typename C>
|
||||
struct agnostic_lua_call_wrapper<bases<Args...>, is_index, is_variable, C> {
|
||||
static int call(lua_State* L, bases<Args...>&) {
|
||||
static int call(lua_State*, bases<Args...>&) {
|
||||
// Uh. How did you even call this, lul
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -167,7 +167,7 @@ inline int call_lua(lua_State* L, int start, Fx&& fx, FxArgs&&... fxargs) {
|
|||
typedef lua_bind_traits<meta::unqualified_t<Fx>> traits_type;
|
||||
typedef typename traits_type::args_list args_list;
|
||||
typedef typename traits_type::returns_list returns_list;
|
||||
return call_into_lua(returns_list(), args_list(), start, std::forward<Fx>(fx), std::forward<FxArgs>(fxargs)...);
|
||||
return call_into_lua(returns_list(), args_list(), L, start, std::forward<Fx>(fx), std::forward<FxArgs>(fxargs)...);
|
||||
}
|
||||
|
||||
inline call_syntax get_call_syntax(lua_State* L, const std::string& key, int index = -2) {
|
||||
|
|
|
@ -91,7 +91,7 @@ namespace sol {
|
|||
}
|
||||
|
||||
template <typename Fx, typename Arg, typename... Args>
|
||||
static void call(Fx&& fx, object_type& mem, Arg&& arg, Args&&... args) {
|
||||
static void call(Fx&& fx, object_type& mem, Arg&& arg, Args&&...) {
|
||||
(mem.*fx) = std::forward<Arg>(arg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user