| 4550 | |
| 4551 | |
| 4552 | static int currentline (lua_State *L, CallInfo *ci) { |
| 4553 | int pc = currentpc(L, ci); |
| 4554 | if (pc < 0) |
| 4555 | return -1; /* only active lua functions have current-line information */ |
| 4556 | else |
| 4557 | return lua_getline(ci_func(ci)->l.p, pc); |
| 4558 | } |
| 4559 | |
| 4560 | |
| 4561 | /* |
no test coverage detected