mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
update single
This commit is contained in:
parent
9d52ed49ba
commit
77a1ce76b5
|
@ -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 2016-09-19 05:17:09.304397 UTC
|
||||
// This header was generated with sol v2.14.2 (revision 89107d3)
|
||||
// Generated 2016-09-20 03:39:12.452520 UTC
|
||||
// This header was generated with sol v2.14.2 (revision 9d52ed4)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||
|
@ -6469,9 +6469,15 @@ namespace sol {
|
|||
apply<false>(std::index_sequence<I1, I...>(), L, std::forward<Keys>(keys), std::forward<Value>(value), -1);
|
||||
}
|
||||
|
||||
template <bool g, std::size_t I0, std::size_t... I, typename Keys, typename Value>
|
||||
void top_apply(std::index_sequence<I0, I...>, lua_State* L, Keys&& keys, Value&& value, int tableindex) {
|
||||
apply<g>(std::index_sequence<I0, I...>(), L, std::forward<Keys>(keys), std::forward<Value>(value), tableindex);
|
||||
lua_pop(L, static_cast<int>(sizeof...(I)));
|
||||
}
|
||||
|
||||
template <typename Keys, typename Value>
|
||||
void set(lua_State* L, Keys&& keys, Value&& value, int tableindex = -3) {
|
||||
apply<b>(std::make_index_sequence<sizeof...(Args)>(), L, std::forward<Keys>(keys), std::forward<Value>(value), tableindex);
|
||||
top_apply<b>(std::make_index_sequence<sizeof...(Args)>(), L, std::forward<Keys>(keys), std::forward<Value>(value), tableindex);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -6481,6 +6487,7 @@ namespace sol {
|
|||
void set(lua_State* L, Keys&& keys, Value&& value, int tableindex = -1) {
|
||||
get_field<b, raw>(L, detail::forward_get<0>(keys), tableindex);
|
||||
set_field<false, raw>(L, detail::forward_get<1>(keys), std::forward<Value>(value));
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
};
|
||||
} // stack
|
||||
|
|
Loading…
Reference in New Issue
Block a user