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

Function ldbInit

src/scripting.cpp:1866–1875  ·  view source on GitHub ↗

Initialize Lua debugger data structures. */

Source from the content-addressed store, hash-verified

1864
1865/* Initialize Lua debugger data structures. */
1866void ldbInit(void) {
1867 ldb.conn = NULL;
1868 ldb.active = 0;
1869 ldb.logs = listCreate();
1870 listSetFreeMethod(ldb.logs,(void (*)(const void*))sdsfree);
1871 ldb.children = listCreate();
1872 ldb.src = NULL;
1873 ldb.lines = 0;
1874 ldb.cbuf = sdsempty();
1875}
1876
1877/* Remove all the pending messages in the specified list. */
1878void ldbFlushLog(list *log) {

Callers 1

scriptingInitFunction · 0.85

Calls 2

listCreateFunction · 0.85
sdsemptyFunction · 0.85

Tested by

no test coverage detected