[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C Function Declarations
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 16 Oct 2000 11:45:12 -0200
> 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