MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / changedline

Function changedline

extlibs/lua/src/ldebug.c:787–793  ·  view source on GitHub ↗

** Check whether new instruction 'newpc' is in a different line from ** previous instruction 'oldpc'. */

Source from the content-addressed store, hash-verified

785** previous instruction 'oldpc'.
786*/
787static 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
796int luaG_traceexec (lua_State *L, const Instruction *pc) {

Callers 1

luaG_traceexecFunction · 0.85

Calls 1

luaG_getfunclineFunction · 0.85

Tested by

no test coverage detected