[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: MacOS X and 5.1: symbols not defined
- From: Glenn Maynard <glenn@...>
- Date: Thu, 24 Mar 2005 01:57:34 -0500
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