[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: extern "C" ?
- From: "Brian Weed" <bw@...>
- Date: Fri, 12 Sep 2003 20:47:48 -0400
> Besides, you've already added it, too late to change it now.... ;)
Yeah, but thats the 2nd time I had to do that. Once in v4, and now again in
v5. And when a new update comes out, I will have to do it again (or merge
the diffs).
Brian
----- Original Message -----
From: "Richard Ranft" <rranft@lvcablemodem.com>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Friday, September 12, 2003 7:50 PM
Subject: RE: extern "C" ?
> 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.
>
>