[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re: Using Lua in a C(++) program
- From: "D Burgess" <db@...>
- Date: Sat, 14 Jun 2003 8:32:47 +1000
Why not
#ifdef __cplusplus
#define LUA_API extern C
#else
#define LUA_API extern
#endif
+++++++++++++++++++++++++++++++++
>Hallo,
>
>Wim Couwenberg wrote:
>>
>> I think a sensible alternative pops up in each thread on
>> this issue as well. Don't use the C lua headers, but use
>> C++ counterparts instead. Suggestion: distribute files
>> clua.h, clauxlib.h and clualib.h (in the ./include dir)
>> and mention them in the manual, where each file simply wraps
>> the C header:
>>
>
> That's the best idea I've seen on the subject so far.
>
>-Alex