lua-users home
lua-l archive

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



On Nov 17, 2003, at 23:48, Taj Khattra wrote:

On Mon, Nov 17, 2003 at 04:10:38PM -0200, Luiz Henrique de Figueiredo wrote:

More precisely, you can turn on API assertions by building Lua with

	  '-Dapi_check(L,o)=assert(o)'

just curious, is the above ansi cpp compliant ?

	% lcc -D'lua_assert(L,o)=assert(o)' -E /dev/null
	cpp: <cmdarg>:1 Illegal -D or -U argument (L,o)=assert(o)

(i'm not sure if lcc's cpp is fully ansi compliant)


You mean ISO not ANSI. In any case the ISO standard says nothing about the compiler being divided into a cpp and a compiler proper, nor does it say anything about exactly how the compiler is invoked. Things like that are left up to the compiler implementor to decide and well outside the scope of the ISO standard.

The POSIX or UNIX standards might have something to say about the command line compiler invocation (but I can't be bothered to check right now).


David Jones