diff options
| author | jussi | 2023-04-07 18:47:48 +0300 |
|---|---|---|
| committer | jussi | 2023-04-07 18:47:48 +0300 |
| commit | 22f70cf06f75cd5022e622a9d14a56b67e74a157 (patch) | |
| tree | 950aa06b63e7c8e6d4c5bc9e08a23d683183d433 /src/lua_core.c | |
| parent | 3cc1af265f982d869d095267f837f60733c89778 (diff) | |
| download | reilua-enhanced-22f70cf06f75cd5022e622a9d14a56b67e74a157.tar.gz reilua-enhanced-22f70cf06f75cd5022e622a9d14a56b67e74a157.tar.bz2 reilua-enhanced-22f70cf06f75cd5022e622a9d14a56b67e74a157.zip | |
textures and core new argument style.
Diffstat (limited to 'src/lua_core.c')
| -rw-r--r-- | src/lua_core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lua_core.c b/src/lua_core.c index b339be2..ea0851b 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -2059,7 +2059,11 @@ void uluaPushBoundingBox( lua_State *L, BoundingBox box ) { } int uluaGetTableLen( lua_State *L ) { - int t = lua_gettop( L ), i = 0; + return uluaGetTableLenIndex( L, lua_gettop( L ) ); +} + +int uluaGetTableLenIndex( lua_State *L, int index ) { + int t = index, i = 0; lua_pushnil( L ); while ( lua_next( L, t ) != 0 ) { |
