use lua_rawlen

This commit is contained in:
Francois Perrad 2017-04-25 13:27:58 +02:00
parent 316bfb1ab7
commit 23afb8dcee

View File

@ -261,7 +261,7 @@ LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud);
#define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0)
#define lua_strlen(L,i) lua_objlen(L, (i))
#define lua_strlen(L,i) lua_rawlen(L, (i))
#define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION)
#define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE)