lua-users home
lua-l archive

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


You may already know this, but...

extern "C"
{
#include <lua.h>
}

works very well too.


> -----Original Message-----
> From: lua-l@tecgraf.puc-rio.br [mailto:lua-l@tecgraf.puc-rio.br]On
> Behalf Of Adam Wozniak
> Sent: Wednesday, July 14, 1999 1:58 PM
> To: Multiple recipients of list
> Subject: C vs C++
> 
> 
> 
> Eeek.
> 
> Howsabout some
> 
> #idef _cplusplus
> extern "C"
> {
> #endif
> 
> /* normal function prototypes */
> 
> #ifdef _cplusplus
> };
> #endif
> 
> in your header files?
> 
> --Adam
>