[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: struct Proto.lineinfo difference between Lua 5.3 and 5.4
- From: Wilfred Nilsen <realtimelogic@...>
- Date: Mon, 18 Oct 2021 18:07:29 -0700
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