** Check whether new instruction 'newpc' is in a different line from ** previous instruction 'oldpc'. */
| 785 | ** previous instruction 'oldpc'. |
| 786 | */ |
| 787 | static int changedline (const Proto *p, int oldpc, int newpc) { |
| 788 | while (oldpc++ < newpc) { |
| 789 | if (p->lineinfo[oldpc] != 0) |
| 790 | return (luaG_getfuncline(p, oldpc - 1) != luaG_getfuncline(p, newpc)); |
| 791 | } |
| 792 | return 0; /* no line changes in the way */ |
| 793 | } |
| 794 | |
| 795 | |
| 796 | int luaG_traceexec (lua_State *L, const Instruction *pc) { |
no test coverage detected