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

Function db_emit_int

lua/sp.c:4166–4178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4164}
4165
4166static int db_emit_int(Lua L)
4167{
4168 if (luabb_istype(L, 1, DBTYPES_DBTABLE)) {
4169 return dbtable_emit(L);
4170 } else if (luabb_istype(L, 1, DBTYPES_DBSTMT)) {
4171 return dbstmt_emit(L);
4172 } else if (lua_istable(L, 1)) {
4173 return luatable_emit(L);
4174 } else {
4175 int rc = l_send_back_row(L, NULL, lua_gettop(L));
4176 return push_and_return(L, rc);
4177 }
4178}
4179
4180static int db_emit(Lua L)
4181{

Callers 2

dbconsumer_emitFunction · 0.85
db_emitFunction · 0.85

Calls 7

luabb_istypeFunction · 0.85
dbtable_emitFunction · 0.85
dbstmt_emitFunction · 0.85
luatable_emitFunction · 0.85
l_send_back_rowFunction · 0.85
lua_gettopFunction · 0.85
push_and_returnFunction · 0.85

Tested by

no test coverage detected