MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ldbLogStackValue

Function ldbLogStackValue

src/scripting.cpp:2324–2328  ·  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

2322 * currently on the top of the stack. The element is ot popped nor modified.
2323 * Check ldbCatStackValue() for the actual implementation. */
2324void ldbLogStackValue(lua_State *lua, const char *prefix) {
2325 sds s = sdsnew(prefix);
2326 s = ldbCatStackValue(s,lua,-1);
2327 ldbLogWithMaxLen(s);
2328}
2329
2330char *ldbRedisProtocolToHuman_Int(sds *o, char *reply);
2331char *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