The performance went to shit and I need all the perf tools I can get to find out why.

This commit is contained in:
ThePhD 2016-06-09 21:14:12 -04:00
parent 2a07784933
commit 295b7b1a08
3 changed files with 3 additions and 3 deletions

View File

@ -285,7 +285,7 @@ namespace call_detail {
template <typename... Args, bool is_index, bool is_variable, typename C> template <typename... Args, bool is_index, bool is_variable, typename C>
struct agnostic_lua_call_wrapper<bases<Args...>, is_index, is_variable, 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 // Uh. How did you even call this, lul
return 0; return 0;
} }

View File

@ -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 lua_bind_traits<meta::unqualified_t<Fx>> traits_type;
typedef typename traits_type::args_list args_list; typedef typename traits_type::args_list args_list;
typedef typename traits_type::returns_list returns_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) { inline call_syntax get_call_syntax(lua_State* L, const std::string& key, int index = -2) {

View File

@ -91,7 +91,7 @@ namespace sol {
} }
template <typename Fx, typename Arg, typename... Args> 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); (mem.*fx) = std::forward<Arg>(arg);
} }