4 ms·
I would think that rather than ifdefs, one could use separate port files. And regarding C89/99, a solution here is to use ANSI C, which is what Lua does.
by clbrmbr 1y ago
I would think that rather than ifdefs, one could use separate port files. And regarding C89/99, a solution here is to use ANSI C, which is what Lua does.
- MaxBarraclough 1y ago> regarding C89/99, a solution here is to use ANSI C, which is what Lua does C89 and C99 are both standards that are endorsed by ANSI. [0] (At least, they were endorsed, as they're now both behind the times.) The Lua interpreter is written in a subset of C that behaves identically when compiled as C++, they call this 'Clean C'. [1] [0] https://en.wikipedia.org/wiki/ANSI_C https://en.wikipedia.org/wiki/ANSI_C [1] https://www.lua.org/manual/5.4/manual.html https://www.lua.org/manual/5.4/manual.html