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
86664b4c60
commit
471b5870e2
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2016-09-26 08:01:11.472268 UTC
|
// Generated 2016-09-28 23:10:06.808593 UTC
|
||||||
// This header was generated with sol v2.14.2 (revision 63093ec)
|
// This header was generated with sol v2.14.5 (revision 86664b4)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -10253,7 +10253,7 @@ namespace sol {
|
||||||
indexbase(&usertype_detail::simple_core_indexing_call<true>), newindexbase(&usertype_detail::simple_core_indexing_call<false>),
|
indexbase(&usertype_detail::simple_core_indexing_call<true>), newindexbase(&usertype_detail::simple_core_indexing_call<false>),
|
||||||
indexbaseclasspropogation(usertype_detail::walk_all_bases<true>), newindexbaseclasspropogation(&usertype_detail::walk_all_bases<false>),
|
indexbaseclasspropogation(usertype_detail::walk_all_bases<true>), newindexbaseclasspropogation(&usertype_detail::walk_all_bases<false>),
|
||||||
baseclasscheck(nullptr), baseclasscast(nullptr),
|
baseclasscheck(nullptr), baseclasscast(nullptr),
|
||||||
mustindex(false), secondarymeta(false) {
|
mustindex(true), secondarymeta(true) {
|
||||||
(void)detail::swallow{ 0,
|
(void)detail::swallow{ 0,
|
||||||
(add(L, detail::forward_get<I * 2>(args), detail::forward_get<I * 2 + 1>(args)),0)...
|
(add(L, detail::forward_get<I * 2>(args), detail::forward_get<I * 2 + 1>(args)),0)...
|
||||||
};
|
};
|
||||||
|
@ -10547,7 +10547,7 @@ namespace sol {
|
||||||
if (k <= src.size() && k > 0) {
|
if (k <= src.size() && k > 0) {
|
||||||
--k;
|
--k;
|
||||||
std::advance(it, k);
|
std::advance(it, k);
|
||||||
return stack::push(L, *it);
|
return stack::push_reference(L, *it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stack::push(L, nil);
|
return stack::push(L, nil);
|
||||||
|
@ -10557,7 +10557,7 @@ namespace sol {
|
||||||
K k = stack::get<K>(L, 2);
|
K k = stack::get<K>(L, 2);
|
||||||
--k;
|
--k;
|
||||||
std::advance(it, k);
|
std::advance(it, k);
|
||||||
return stack::push(L, *it);
|
return stack::push_reference(L, *it);
|
||||||
#endif // Safety
|
#endif // Safety
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10606,8 +10606,7 @@ namespace sol {
|
||||||
if (it == end(source)) {
|
if (it == end(source)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int p = stack::push(L, k + 1);
|
int p = stack::multi_push_reference(L, k + 1, *it);
|
||||||
p += stack::push(L, *it);
|
|
||||||
std::advance(it, 1);
|
std::advance(it, 1);
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
@ -10704,7 +10703,7 @@ namespace sol {
|
||||||
auto it = detail::find(src, *k);
|
auto it = detail::find(src, *k);
|
||||||
if (it != end(src)) {
|
if (it != end(src)) {
|
||||||
auto& v = *it;
|
auto& v = *it;
|
||||||
return stack::push(L, v.second);
|
return stack::push_reference(L, v.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stack::push(L, nil);
|
return stack::push(L, nil);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user