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. */
| 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. */ |
| 2070 | char *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. */ |
| 2077 | int ldbIsBreakpoint(int line) { |