lua-users home
lua-l archive

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


On Thu, Mar 24, 2005 at 08:49:46AM +0200, Eero Pajarre wrote:
> extern "C" {
> #include "lua.h"
> #include "lualib.h"
> }

It's fairly standard practice for C libraries to do this directly, by
the way:

#ifndef lua_h
#define lua_h

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

#endif

which prevents each application from having to deal with this for every C
library.

-- 
Glenn Maynard