diff options
| author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-08-24 12:29:02 -0300 |
|---|---|---|
| committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-08-24 12:29:02 -0300 |
| commit | 0c6b906c8c8af02234f291f8bd602001bb191143 (patch) | |
| tree | 6ab8b8b26d2628d2b750b645f01d558d203c0180 | |
| parent | 9294a2787f99174473afefcc0fcaf4f865959c63 (diff) | |
| download | lua-0c6b906c8c8af02234f291f8bd602001bb191143.tar.gz lua-0c6b906c8c8af02234f291f8bd602001bb191143.tar.bz2 lua-0c6b906c8c8af02234f291f8bd602001bb191143.zip | |
Compatibilizacao com C++.
| -rw-r--r-- | lua.h | 11 | ||||
| -rw-r--r-- | lualib.h | 12 |
2 files changed, 21 insertions, 2 deletions
| @@ -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 | ||
| 13 | extern "C" | ||
| 14 | { | ||
| 15 | #endif | ||
| 16 | |||
| 12 | typedef void (*lua_CFunction) (void); | 17 | typedef void (*lua_CFunction) (void); |
| 13 | typedef struct Object *lua_Object; | 18 | typedef struct Object *lua_Object; |
| 14 | 19 | ||
| @@ -56,4 +61,8 @@ int lua_isfunction (lua_Object object); | |||
| 56 | int lua_iscfunction (lua_Object object); | 61 | int lua_iscfunction (lua_Object object); |
| 57 | int lua_isuserdata (lua_Object object); | 62 | int lua_isuserdata (lua_Object object); |
| 58 | 63 | ||
| 64 | #ifdef __cplusplus | ||
| 65 | } | ||
| 66 | #endif | ||
| 67 | |||
| 59 | #endif | 68 | #endif |
| @@ -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 | ||
| 12 | extern "C" | ||
| 13 | { | ||
| 14 | #endif | ||
| 15 | |||
| 16 | |||
| 11 | void iolib_open (void); | 17 | void iolib_open (void); |
| 12 | void strlib_open (void); | 18 | void strlib_open (void); |
| 13 | void mathlib_open (void); | 19 | void mathlib_open (void); |
| 14 | 20 | ||
| 21 | #ifdef __cplusplus | ||
| 22 | } | ||
| 23 | #endif | ||
| 24 | |||
| 15 | #endif | 25 | #endif |
| 16 | 26 | ||
