[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof
- From: Andrew Gierth <andrew@...>
- Date: Fri, 22 May 2020 16:50:59 +0100
>>>>> "Massimo" == Massimo Sala <massimo.sala.71@gmail.com> writes:
Massimo> You cited C89 standard.
Massimo> Also casting inside preprocessor macros isn't compliant to C
Massimo> standards.
Wrong. You can cast inside macros as much as you please. What you
_can't_ do is then use those macros as part of preprocessor
_conditionals_ - but this is no problem since the Lua code makes no
attempt to use MAX_SIZE in any preprocessor condition.
--
Andrew.
- References:
- Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof, Massimo Sala
- Re: Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof, Lorenzo Donati
- Re: Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof, Massimo Sala
- Re: Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof, Andrew Gierth
- Re: Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof, Massimo Sala