MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ldbLogStackValue

Function ldbLogStackValue

app/redis-6.2.6/src/scripting.c:2301–2305  ·  view source on GitHub ↗

Produce a debugger log entry representing the value of the Lua object * currently on the top of the stack. The element is ot popped nor modified. * Check ldbCatStackValue() for the actual implementation. */

Source from the content-addressed store, hash-verified

2299 * currently on the top of the stack. The element is ot popped nor modified.
2300 * Check ldbCatStackValue() for the actual implementation. */
2301void ldbLogStackValue(lua_State *lua, char *prefix) {
2302 sds s = sdsnew(prefix);
2303 s = ldbCatStackValue(s,lua,-1);
2304 ldbLogWithMaxLen(s);
2305}
2306
2307char *ldbRedisProtocolToHuman_Int(sds *o, char *reply);
2308char *ldbRedisProtocolToHuman_Bulk(sds *o, char *reply);

Callers 3

ldbPrintFunction · 0.85
ldbPrintAllFunction · 0.85
ldbEvalFunction · 0.85

Calls 3

sdsnewFunction · 0.85
ldbCatStackValueFunction · 0.85
ldbLogWithMaxLenFunction · 0.85

Tested by

no test coverage detected