misc/liblua/ltablib.c
changeset 10017 de822cd3df3a
parent 2812 0a24853de796
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
    14 
    14 
    15 #include "lauxlib.h"
    15 #include "lauxlib.h"
    16 #include "lualib.h"
    16 #include "lualib.h"
    17 
    17 
    18 
    18 
    19 #define aux_getn(L,n)	(luaL_checktype(L, n, LUA_TTABLE), luaL_getn(L, n))
    19 #define aux_getn(L,n)   (luaL_checktype(L, n, LUA_TTABLE), luaL_getn(L, n))
    20 
    20 
    21 
    21 
    22 static int foreachi (lua_State *L) {
    22 static int foreachi (lua_State *L) {
    23   int i;
    23   int i;
    24   int n = aux_getn(L, 1);
    24   int n = aux_getn(L, 1);