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. */
| 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. */ |
| 2092 | const 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. */ |
| 2099 | int ldbIsBreakpoint(int line) { |