lua-users home
lua-l archive

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


> There's no need (in this case) to corrupt the C files with C++ code.

I agree. Otherwise, when someone creates a new language that also "imports"
C header files, we will need to change all our .h files to include an
extra

  #ifdef __a_new_language
  bla bla bla
  #endif

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...

-- Roberto