mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Update pretty printing in debugging to generate valid Lua code for tables.
This commit is contained in:
parent
9f63e75a07
commit
3969e9d3df
@ -1882,8 +1882,9 @@ sds ldbCatStackValue(sds s, lua_State *lua, int idx) {
|
|||||||
repr1 = ldbCatStackValue(repr1,lua,-1);
|
repr1 = ldbCatStackValue(repr1,lua,-1);
|
||||||
repr1 = sdscatlen(repr1,"; ",2);
|
repr1 = sdscatlen(repr1,"; ",2);
|
||||||
/* Full repr. */
|
/* Full repr. */
|
||||||
|
repr2 = sdscatlen(repr2,"[",1);
|
||||||
repr2 = ldbCatStackValue(repr2,lua,-2);
|
repr2 = ldbCatStackValue(repr2,lua,-2);
|
||||||
repr2 = sdscatlen(repr2,"=",1);
|
repr2 = sdscatlen(repr2,"]=",2);
|
||||||
repr2 = ldbCatStackValue(repr2,lua,-1);
|
repr2 = ldbCatStackValue(repr2,lua,-1);
|
||||||
repr2 = sdscatlen(repr2,"; ",2);
|
repr2 = sdscatlen(repr2,"; ",2);
|
||||||
lua_pop(lua,1); /* Stack: table, key. Ready for next iteration. */
|
lua_pop(lua,1); /* Stack: table, key. Ready for next iteration. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user