aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1994-08-24 12:29:02 -0300
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1994-08-24 12:29:02 -0300
commit0c6b906c8c8af02234f291f8bd602001bb191143 (patch)
tree6ab8b8b26d2628d2b750b645f01d558d203c0180
parent9294a2787f99174473afefcc0fcaf4f865959c63 (diff)
downloadlua-0c6b906c8c8af02234f291f8bd602001bb191143.tar.gz
lua-0c6b906c8c8af02234f291f8bd602001bb191143.tar.bz2
lua-0c6b906c8c8af02234f291f8bd602001bb191143.zip
Compatibilizacao com C++.
-rw-r--r--lua.h11
-rw-r--r--lualib.h12
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 @@
2** LUA - Linguagem para Usuarios de Aplicacao 2** LUA - Linguagem para Usuarios de Aplicacao
3** Grupo de Tecnologia em Computacao Grafica 3** Grupo de Tecnologia em Computacao Grafica
4** TeCGraf - PUC-Rio 4** TeCGraf - PUC-Rio
5** $Id: lua.h,v 1.2 1994/08/03 14:15:46 celes Exp celes $ 5** $Id: lua.h,v 1.3 1994/08/17 15:05:08 celes Exp celes $
6*/ 6*/
7 7
8 8
9#ifndef lua_h 9#ifndef lua_h
10#define lua_h 10#define lua_h
11 11
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
12typedef void (*lua_CFunction) (void); 17typedef void (*lua_CFunction) (void);
13typedef struct Object *lua_Object; 18typedef struct Object *lua_Object;
14 19
@@ -56,4 +61,8 @@ int lua_isfunction (lua_Object object);
56int lua_iscfunction (lua_Object object); 61int lua_iscfunction (lua_Object object);
57int lua_isuserdata (lua_Object object); 62int lua_isuserdata (lua_Object object);
58 63
64#ifdef __cplusplus
65}
66#endif
67
59#endif 68#endif
diff --git a/lualib.h b/lualib.h
index 6150a4da..bb159fe3 100644
--- a/lualib.h
+++ b/lualib.h
@@ -2,15 +2,25 @@
2** Libraries to be used in LUA programs 2** Libraries to be used in LUA programs
3** Grupo de Tecnologia em Computacao Grafica 3** Grupo de Tecnologia em Computacao Grafica
4** TeCGraf - PUC-Rio 4** TeCGraf - PUC-Rio
5** $Id: $ 5** $Id: lualib.h,v 1.1 1993/12/17 19:01:46 celes Exp celes $
6*/ 6*/
7 7
8#ifndef lualib_h 8#ifndef lualib_h
9#define lualib_h 9#define lualib_h
10 10
11#ifdef __cplusplus
12extern "C"
13{
14#endif
15
16
11void iolib_open (void); 17void iolib_open (void);
12void strlib_open (void); 18void strlib_open (void);
13void mathlib_open (void); 19void mathlib_open (void);
14 20
21#ifdef __cplusplus
22}
23#endif
24
15#endif 25#endif
16 26