lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 0c6b906c8c8af02234f291f8bd602001bb191143
parent 9294a2787f99174473afefcc0fcaf4f865959c63
Author: Waldemar Celes <celes@tecgraf.puc-rio.br>
Date:   Wed, 24 Aug 1994 12:28:43 -0300

Compatibilizacao com C++.

Diffstat:
Mlua.h | 11++++++++++-
Mlualib.h | 12+++++++++++-
2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/lua.h b/lua.h @@ -2,13 +2,18 @@ ** LUA - Linguagem para Usuarios de Aplicacao ** Grupo de Tecnologia em Computacao Grafica ** TeCGraf - PUC-Rio -** $Id: lua.h,v 1.2 1994/08/03 14:15:46 celes Exp celes $ +** $Id: lua.h,v 1.3 1994/08/17 15:05:08 celes Exp celes $ */ #ifndef lua_h #define lua_h +#ifdef __cplusplus +extern "C" +{ +#endif + typedef void (*lua_CFunction) (void); typedef struct Object *lua_Object; @@ -56,4 +61,8 @@ int lua_isfunction (lua_Object object); int lua_iscfunction (lua_Object object); int lua_isuserdata (lua_Object object); +#ifdef __cplusplus +} +#endif + #endif diff --git a/lualib.h b/lualib.h @@ -2,15 +2,25 @@ ** Libraries to be used in LUA programs ** Grupo de Tecnologia em Computacao Grafica ** TeCGraf - PUC-Rio -** $Id: $ +** $Id: lualib.h,v 1.1 1993/12/17 19:01:46 celes Exp celes $ */ #ifndef lualib_h #define lualib_h +#ifdef __cplusplus +extern "C" +{ +#endif + + void iolib_open (void); void strlib_open (void); void mathlib_open (void); +#ifdef __cplusplus +} +#endif + #endif