| 42 | |
| 43 | |
| 44 | static int currentline (lua_State *L, CallInfo *ci) { |
| 45 | int pc = currentpc(L, ci); |
| 46 | if (pc < 0) |
| 47 | return -1; /* only active lua functions have current-line information */ |
| 48 | else |
| 49 | return getline(ci_func(ci)->l.p, pc); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | /* |
no test coverage detected