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

Function lsqlite_getcontext

lib/sqlite/lsqlite3.c:740–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740static lcontext *lsqlite_getcontext(lua_State *L, int index) {
741 lcontext *ctx = (lcontext*)luaL_checkudata(L, index, sqlite_ctx_meta);
742 if (ctx == NULL) luaL_typerror(L, index, "sqlite context");
743 return ctx;
744}
745
746static lcontext *lsqlite_checkcontext(lua_State *L, int index) {
747 lcontext *ctx = lsqlite_getcontext(L, index);

Callers 4

lsqlite_checkcontextFunction · 0.85
lcontext_tostringFunction · 0.85
db_sql_normal_functionFunction · 0.85
db_sql_finalize_functionFunction · 0.85

Calls 2

luaL_checkudataFunction · 0.85
luaL_typerrorFunction · 0.85

Tested by

no test coverage detected