mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
GCC warnings can go suck a duck.
This commit is contained in:
parent
ed0b83f8b0
commit
6101865c1e
|
@ -241,9 +241,14 @@ inline auto pop_call(lua_State* L, TFx&& fx, types<Args...>) -> decltype(detail:
|
||||||
return detail::ltr_pop(L, std::forward<TFx>(fx), types<Args...>());
|
return detail::ltr_pop(L, std::forward<TFx>(fx), types<Args...>());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename... Args>
|
void push_args(lua_State*) {
|
||||||
void push_args(lua_State* L, Args&&... args) {
|
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Arg, typename... Args>
|
||||||
|
void push_args(lua_State* L, Arg&& arg, Args&&... args) {
|
||||||
using swallow = char[];
|
using swallow = char[];
|
||||||
|
stack::push(L, std::forward<Arg>(arg));
|
||||||
void(swallow{'\0', (stack::push(L, std::forward<Args>(args)), '\0')... });
|
void(swallow{'\0', (stack::push(L, std::forward<Args>(args)), '\0')... });
|
||||||
}
|
}
|
||||||
} // stack
|
} // stack
|
||||||
|
|
Loading…
Reference in New Issue
Block a user