mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
qq clang pls
This commit is contained in:
parent
e31ed71006
commit
fd657ea249
|
@ -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-08-20 01:06:43.957511 UTC
|
// Generated 2016-08-20 01:37:43.229767 UTC
|
||||||
// This header was generated with sol v2.11.4 (revision 1ae78e1)
|
// This header was generated with sol v2.11.5 (revision e31ed71)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -4860,10 +4860,12 @@ namespace sol {
|
||||||
index = lua_absindex(L, index);
|
index = lua_absindex(L, index);
|
||||||
T arr;
|
T arr;
|
||||||
get_field<false, true>(L, static_cast<lua_Integer>(-1), index);
|
get_field<false, true>(L, static_cast<lua_Integer>(-1), index);
|
||||||
optional<std::size_t> sizehint = pop<optional<std::size_t>>(L);
|
int isnum;
|
||||||
if (sizehint) {
|
std::size_t sizehint = static_cast<std::size_t>(lua_tointegerx(L, -1, &isnum));
|
||||||
detail::reserve(arr, *sizehint);
|
if (isnum == 0) {
|
||||||
|
detail::reserve(arr, sizehint);
|
||||||
}
|
}
|
||||||
|
lua_pop(L, 1);
|
||||||
#if SOL_LUA_VERSION >= 503
|
#if SOL_LUA_VERSION >= 503
|
||||||
// This method is HIGHLY performant over regular table iteration thanks to the Lua API changes in 5.3
|
// This method is HIGHLY performant over regular table iteration thanks to the Lua API changes in 5.3
|
||||||
for (lua_Integer i = 0; ; ++i, lua_pop(L, 1)) {
|
for (lua_Integer i = 0; ; ++i, lua_pop(L, 1)) {
|
||||||
|
|
|
@ -83,14 +83,15 @@ namespace sol {
|
||||||
typedef typename T::value_type V;
|
typedef typename T::value_type V;
|
||||||
tracking.use(1);
|
tracking.use(1);
|
||||||
|
|
||||||
|
|
||||||
index = lua_absindex(L, index);
|
index = lua_absindex(L, index);
|
||||||
T arr;
|
T arr;
|
||||||
get_field<false, true>(L, static_cast<lua_Integer>(-1), index);
|
get_field<false, true>(L, static_cast<lua_Integer>(-1), index);
|
||||||
optional<std::size_t> sizehint = pop<optional<std::size_t>>(L);
|
int isnum;
|
||||||
if (sizehint) {
|
std::size_t sizehint = static_cast<std::size_t>(lua_tointegerx(L, -1, &isnum));
|
||||||
detail::reserve(arr, *sizehint);
|
if (isnum == 0) {
|
||||||
|
detail::reserve(arr, sizehint);
|
||||||
}
|
}
|
||||||
|
lua_pop(L, 1);
|
||||||
#if SOL_LUA_VERSION >= 503
|
#if SOL_LUA_VERSION >= 503
|
||||||
// This method is HIGHLY performant over regular table iteration thanks to the Lua API changes in 5.3
|
// This method is HIGHLY performant over regular table iteration thanks to the Lua API changes in 5.3
|
||||||
for (lua_Integer i = 0; ; ++i, lua_pop(L, 1)) {
|
for (lua_Integer i = 0; ; ++i, lua_pop(L, 1)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user