lua-users home
lua-l archive

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


EVERYONE has to add that....

The thing of it is, as cool as C++ is not everyone uses it.  So, if you
change it the C people will object.  If you leave it the C++ people cry.
This discussion comes up EVERY time someone starts using Lua.

Can't you just extern "C" {} the headers where you include them?  Or doesn't
that work?

Besides, you've already added it, too late to change it now....  ;)

Rich

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br]On Behalf Of Brian Weed
Sent: Friday, September 12, 2003 3:13 PM
To: Lua list
Subject: extern "C" ?


I had to add the following to every Lua header file to be consistent accross
my two target platforms (Win32, Carbon):

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

It would be nice if Lua already had this.

Brian Weed
Senior Software Architect
ImaginEngine Corp.