lua-users home
lua-l archive

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



  Hi,

When building the Lua 5.1 beta in AIX using C for AIX, the compiler complains about the definition of NUM_OPCODES in "lopcodes.h".

Not a big problem since it is an old compiler. But, isn't easier to simply define it inside the enum?

OP_VARARG, /*	A B	R(A), R(A+1), ..., R(A+B-1) = vararg		*/
NUM_OPCODES
} OpCode;

/* #define NUM_OPCODES	(cast(int, OP_VARARG+1)) */

Best,
scuri