lua-users home
lua-l archive

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


> >>   return (exit(status), 0);
> 
> >>   if (L) exit(status);  /* test to avoid warnings of 'exit' x 'return' */
> >>   return 0;
> 
> I have tested the previous two patches on the bunch of compilers
> currently installed on my computer.
> None of them produced a warning for both tricks.
> The first one is probably better because it avoids an additional
> useless test-and-jump.

According to [1], something similar to the first option gave warnings
in MSVC2005.

[1] http://lua-users.org/lists/lua-l/2008-01/msg00375.html

It would be nice if other people could try these options in their
systems.

-- Roberto