Compatibilizacao com C++.

This commit is contained in:
Waldemar Celes 1994-08-24 12:29:02 -03:00
parent 9294a2787f
commit 0c6b906c8c
2 changed files with 21 additions and 2 deletions

11
lua.h
View File

@ -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

View File

@ -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