Skip to content

Commit

Permalink
more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfq committed Aug 10, 2023
1 parent 93841b1 commit fa21a4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frameworks/cclua/src/olua/olua.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ static void *aux_toobj(lua_State *L, int idx, const char *cls, bool checked)
if (olua_likely(checked ? olua_isa(L, idx, cls) : olua_isuserdata(L, idx))) {
void *obj = olua_torawobj(L, idx);
if (olua_unlikely(!obj)) {
luaL_error(L, "object '%s' survive from gc", olua_typename(L, idx));
idx = lua_absindex(L, idx);
luaL_error(L, "object '%s %p' survive from gc",
olua_typename(L, idx), lua_topointer(L, idx));
}
return obj;
} else {
Expand Down

0 comments on commit fa21a4a

Please sign in to comment.