lua-users home
lua-l archive

struct Proto.lineinfo difference between Lua 5.3 and 5.4

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,
I have some code coverage code I used with Lua 5.3 that no longer works with 5.4. I am trying to wrap my head around the new Proto structure.
The original 5.3 compatible recursive code used lineinfo as follows:
addActiveLines(lua_State* L, Proto *p)
{
   int i;
   for (i = 0; i < p->sizelineinfo; i++)
   {
      >>>>> SAVE the line p->lineinfo[i]
   }
   for (i = 0; i < p->sizep; i++)
   {
      addActiveLines(L, p->p[i]);
   }
}
How do I make the above compatible with 5.4?
Thanks,
Wilfred

AltStyle によって変換されたページ (->オリジナル) /