lua-users home
lua-l archive

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


Probably an FAQ....why don't the Lua headers just do an #ifdef
__cplusplus?

Brian

> -----Original Message-----
> From: owner-lua-l@tecgraf.puc-rio.br 
> [mailto:owner-lua-l@tecgraf.puc-rio.br] On Behalf Of Matt Holmes
> Sent: Tuesday, March 05, 2002 5:20 AM
> To: Multiple recipients of list
> Subject: RE: request for barebone MSVC++ host application
> 
> 
> Make sure to wrap all your Lua includes in extern "C" { }, 
> for instance:
> 
> extern "C"
> {
> #include <lua.h>
> #include <lualib.h>
> #include <lauxlib.h>
> #include <luadebug.h>
> }
> 
> Matt