MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaB_rawlen

Function luaB_rawlen

src/Chain/libraries/glua/lbaselib.cpp:258–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258static int luaB_rawlen(lua_State *L) {
259 int t = lua_type(L, 1);
260 luaL_argcheck(L, t == LUA_TTABLE || t == LUA_TSTRING, 1,
261 "table or string expected");
262 lua_pushinteger(L, lua_rawlen(L, 1));
263 return 1;
264}
265
266
267static int luaB_rawget(lua_State *L) {

Callers

nothing calls this directly

Calls 3

lua_typeFunction · 0.85
lua_pushintegerFunction · 0.85
lua_rawlenFunction · 0.85

Tested by

no test coverage detected