diff options
| author | The Lua team <lua@tecgraf.puc-rio.br> | 1993-07-28 10:18:00 -0300 |
|---|---|---|
| committer | The Lua team <lua@tecgraf.puc-rio.br> | 1993-07-28 10:18:00 -0300 |
| commit | cd05d9c5cb69020c069f037ba7f243f705d0a48a (patch) | |
| tree | cb7f08c0684c10970a528984741047fb3babadd3 /lua.h | |
| download | lua-cd05d9c5cb69020c069f037ba7f243f705d0a48a.tar.gz lua-cd05d9c5cb69020c069f037ba7f243f705d0a48a.tar.bz2 lua-cd05d9c5cb69020c069f037ba7f243f705d0a48a.zip | |
oldest known commit
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 54 |
1 files changed, 54 insertions, 0 deletions
| @@ -0,0 +1,54 @@ | |||
| 1 | /* | ||
| 2 | ** LUA - Linguagem para Usuarios de Aplicacao | ||
| 3 | ** Grupo de Tecnologia em Computacao Grafica | ||
| 4 | ** TeCGraf - PUC-Rio | ||
| 5 | ** 19 May 93 | ||
| 6 | */ | ||
| 7 | |||
| 8 | |||
| 9 | #ifndef lua_h | ||
| 10 | #define lua_h | ||
| 11 | |||
| 12 | typedef void (*lua_CFunction) (void); | ||
| 13 | typedef struct Object *lua_Object; | ||
| 14 | |||
| 15 | #define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n)) | ||
| 16 | |||
| 17 | |||
| 18 | void lua_errorfunction (void (*fn) (char *s)); | ||
| 19 | void lua_error (char *s); | ||
| 20 | int lua_dofile (char *filename); | ||
| 21 | int lua_dostring (char *string); | ||
| 22 | int lua_call (char *functionname, int nparam); | ||
| 23 | |||
| 24 | lua_Object lua_getparam (int number); | ||
| 25 | float lua_getnumber (lua_Object object); | ||
| 26 | char *lua_getstring (lua_Object object); | ||
| 27 | char *lua_copystring (lua_Object object); | ||
| 28 | lua_CFunction lua_getcfunction (lua_Object object); | ||
| 29 | void *lua_getuserdata (lua_Object object); | ||
| 30 | lua_Object lua_getfield (lua_Object object, char *field); | ||
| 31 | lua_Object lua_getindexed (lua_Object object, float index); | ||
| 32 | lua_Object lua_getglobal (char *name); | ||
| 33 | |||
| 34 | lua_Object lua_pop (void); | ||
| 35 | |||
| 36 | int lua_pushnil (void); | ||
| 37 | int lua_pushnumber (float n); | ||
| 38 | int lua_pushstring (char *s); | ||
| 39 | int lua_pushcfunction (lua_CFunction fn); | ||
| 40 | int lua_pushuserdata (void *u); | ||
| 41 | int lua_pushobject (lua_Object object); | ||
| 42 | |||
| 43 | int lua_storeglobal (char *name); | ||
| 44 | int lua_storefield (lua_Object object, char *field); | ||
| 45 | int lua_storeindexed (lua_Object object, float index); | ||
| 46 | |||
| 47 | int lua_isnil (lua_Object object); | ||
| 48 | int lua_isnumber (lua_Object object); | ||
| 49 | int lua_isstring (lua_Object object); | ||
| 50 | int lua_istable (lua_Object object); | ||
| 51 | int lua_iscfunction (lua_Object object); | ||
| 52 | int lua_isuserdata (lua_Object object); | ||
| 53 | |||
| 54 | #endif | ||
