MCPcopy Create free account
hub / github.com/cuberite/cuberite / lsqlite_getdb

Function lsqlite_getdb

lib/sqlite/lsqlite3.c:708–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708static sdb *lsqlite_getdb(lua_State *L, int index) {
709 sdb *db = (sdb*)luaL_checkudata(L, index, sqlite_meta);
710 if (db == NULL) luaL_typerror(L, index, "sqlite database");
711 return db;
712}
713
714static sdb *lsqlite_checkdb(lua_State *L, int index) {
715 sdb *db = lsqlite_getdb(L, index);

Callers 4

lsqlite_checkdbFunction · 0.85
db_isopenFunction · 0.85
db_tostringFunction · 0.85
db_gcFunction · 0.85

Calls 2

luaL_checkudataFunction · 0.85
luaL_typerrorFunction · 0.85

Tested by

no test coverage detected