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

Function ldbGetSourceLine

app/redis-6.2.6/src/scripting.c:2070–2074  ·  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

2068/* Return a pointer to ldb.src source code line, considering line to be
2069 * one-based, and returning a special string for out of range lines. */
2070char *ldbGetSourceLine(int line) {
2071 int idx = line-1;
2072 if (idx < 0 || idx >= ldb.lines) return "<out of range source code line>";
2073 return ldb.src[idx];
2074}
2075
2076/* Return true if there is a breakpoint in the specified line. */
2077int ldbIsBreakpoint(int line) {

Callers 1

ldbLogSourceLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected