| 4164 | } |
| 4165 | |
| 4166 | static 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 | |
| 4180 | static int db_emit(Lua L) |
| 4181 | { |
no test coverage detected