|
|
||
|
Le 25 Sep 2006 à 06:23, Glenn Maynard a écrit :
55I just had to point this out, for irony; VC7 gives:
warning C4702: unreachable code
for this bit of code:
exit(luaL_optint(L, 1, EXIT_SUCCESS)); return 0; /* to avoid warnings */
I'd recommend removing this; it's introducing a legitimate warning in order to fix a buggy one.
ASSERT(spong);
#define ASSERT(x) if(1) {} else do { sizeof(x); } while(0)I like the unreachable code warning, but it often annoys too.
drj