From 0c6b906c8c8af02234f291f8bd602001bb191143 Mon Sep 17 00:00:00 2001 From: Waldemar Celes Date: Wed, 24 Aug 1994 12:29:02 -0300 Subject: [PATCH] Compatibilizacao com C++. --- lua.h | 11 ++++++++++- lualib.h | 12 +++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/lua.h b/lua.h index db931825..2452c161 100644 --- 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 index 6150a4da..bb159fe3 100644 --- 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