lua-users home
lua-l archive

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


>Probably an FAQ....why don't the Lua headers just do an #ifdef __cplusplus?

It's a FAQ: See http://www.lua.org/faq.html#5.1 .
For an explanation, here's what Roberto said on 16 Oct 2000:

 Moreover, now Lua compiles without changes as C++ code.
 If we add an « #ifdef __cplusplus/extern "C"/{ #endif » to lua.h, then
 even when we compile Lua as C++ code it will offer a C interface...

--lhf