mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Update pretty printing in debugging to generate valid Lua code for userdata-like types.
This commit is contained in:
parent
9f63e75a07
commit
b754c8e18b
@ -1911,11 +1911,11 @@ sds ldbCatStackValue(sds s, lua_State *lua, int idx) {
|
||||
else if (t == LUA_TUSERDATA) typename = "userdata";
|
||||
else if (t == LUA_TTHREAD) typename = "thread";
|
||||
else if (t == LUA_TLIGHTUSERDATA) typename = "light-userdata";
|
||||
s = sdscatprintf(s,"%s@%p",typename,p);
|
||||
s = sdscatprintf(s,"\"%s@%p\"",typename,p);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
s = sdscat(s,"<unknown-lua-type>");
|
||||
s = sdscat(s,"\"<unknown-lua-type>\"");
|
||||
break;
|
||||
}
|
||||
return s;
|
||||
|
Loading…
Reference in New Issue
Block a user