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

Function luabb_iscstring

lua/luautil.c:575–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575int luabb_iscstring(Lua l, int idx)
576{
577 const TValue *o = index2adr(l, idx);
578 if (!ttisuserdata(o)) return 0;
579 lua_dbtypes_t *bb = luabb_todbpointer(o);
580 if (bb->is_null) return 0;
581 return bb->dbtype == DBTYPES_CSTRING;
582}
583
584/* assumes luabb_iscstring is true */
585const char *luabb_tocstring(Lua l, int idx)

Callers 1

lua_tolstringFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected