Let's say we have following line:
if (psTemp == NULL ||
(psTemp != NULL && psTemp->vStackable == 0)
)
I'd expect that if ps Temp is equal to NULL, the statement is true and everything is fine.
Lite-C however even processes the second condition even if the first one is already true. This results in a crash message in case psTemp is NULL, as it doesn't have a vStackable property then.
So this has to be worked around in Lite-C
if (psTemp != NULL)
{
if (psTemp->vStackable == 0)
{
vNew = 1;
}
}
else
{
vNew = 1;
}
if (vNew != 0)
This is pretty annoying. Can this behaviour be changed in the future?