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

Function ldbGetSourceLine

src/scripting.cpp:2092–2096  ·  view source on GitHub ↗

Return a pointer to ldb.src source code line, considering line to be * one-based, and returning a special string for out of range lines. */

Source from the content-addressed store, hash-verified

2090/* Return a pointer to ldb.src source code line, considering line to be
2091 * one-based, and returning a special string for out of range lines. */
2092const char *ldbGetSourceLine(int line) {
2093 int idx = line-1;
2094 if (idx < 0 || idx >= ldb.lines) return "<out of range source code line>";
2095 return ldb.src[idx];
2096}
2097
2098/* Return true if there is a breakpoint in the specified line. */
2099int ldbIsBreakpoint(int line) {

Callers 1

ldbLogSourceLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected