MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaB_type

Function luaB_type

lua/lbaselib.c:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219/* COMDB2 Change */
220const char *luabb_dbtypename(lua_State *, int);
221static int luaB_type (lua_State *L) {
222 luaL_checkany(L, 1);
223 const char *dbtype;
224 if (lua_type(L, 1) == LUA_TUSERDATA
225 && ((dbtype = luabb_dbtypename(L, lua_gettop(L))) != NULL)) {
226 lua_pushstring(L, dbtype);
227 } else {
228 lua_pushstring(L, luaL_typename(L, 1));
229 }
230 return 1;
231}
232
233
234static int luaB_next (lua_State *L) {

Callers

nothing calls this directly

Calls 5

luaL_checkanyFunction · 0.85
lua_typeFunction · 0.85
luabb_dbtypenameFunction · 0.85
lua_gettopFunction · 0.85
lua_pushstringFunction · 0.85

Tested by

no test coverage detected