diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-30 10:38:50 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-30 10:38:50 -0200 |
commit | f379d06e24f22cb4d0afa3937c27ef35b73b00a6 (patch) | |
tree | e87e3def52e622040ec2724433e21daee8322ee3 /lua.h | |
parent | 728ff2070135b54c544b90020be268f53bf2d15a (diff) | |
download | lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.tar.gz lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.tar.bz2 lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.zip |
all API functions are declared in a single line (to facilitate pre-processing).
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.76 2000/10/24 19:12:06 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.77 2000/10/26 12:47:05 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
5 | ** e-mail: lua@tecgraf.puc-rio.br | 5 | ** e-mail: lua@tecgraf.puc-rio.br |
@@ -16,16 +16,18 @@ | |||
16 | #include <stddef.h> | 16 | #include <stddef.h> |
17 | 17 | ||
18 | 18 | ||
19 | /* mark for all API functions */ | ||
19 | #ifndef LUA_API | 20 | #ifndef LUA_API |
20 | #define LUA_API extern | 21 | #define LUA_API extern |
21 | #endif | 22 | #endif |
22 | 23 | ||
23 | 24 | ||
24 | #define LUA_VERSION "Lua 4.0 (beta)" | 25 | #define LUA_VERSION "Lua 4.0" |
25 | #define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio" | 26 | #define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio" |
26 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" | 27 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" |
27 | 28 | ||
28 | 29 | ||
30 | /* name of global variable with error handler */ | ||
29 | #define LUA_ERRORMESSAGE "_ERRORMESSAGE" | 31 | #define LUA_ERRORMESSAGE "_ERRORMESSAGE" |
30 | 32 | ||
31 | 33 | ||
@@ -39,9 +41,11 @@ | |||
39 | #define LUA_NOTAG (-2) | 41 | #define LUA_NOTAG (-2) |
40 | 42 | ||
41 | 43 | ||
44 | /* option for multiple returns in lua_call */ | ||
42 | #define LUA_MULTRET (-1) | 45 | #define LUA_MULTRET (-1) |
43 | 46 | ||
44 | 47 | ||
48 | /* minimum stack avaiable for a C function */ | ||
45 | #define LUA_MINSTACK 20 | 49 | #define LUA_MINSTACK 20 |
46 | 50 | ||
47 | 51 | ||
@@ -131,9 +135,7 @@ LUA_API void lua_rawget (lua_State *L, int index); | |||
131 | LUA_API void lua_rawgeti (lua_State *L, int index, int n); | 135 | LUA_API void lua_rawgeti (lua_State *L, int index, int n); |
132 | LUA_API void lua_getglobals (lua_State *L); | 136 | LUA_API void lua_getglobals (lua_State *L); |
133 | LUA_API void lua_gettagmethod (lua_State *L, int tag, const char *event); | 137 | LUA_API void lua_gettagmethod (lua_State *L, int tag, const char *event); |
134 | |||
135 | LUA_API int lua_getref (lua_State *L, int ref); | 138 | LUA_API int lua_getref (lua_State *L, int ref); |
136 | |||
137 | LUA_API void lua_newtable (lua_State *L); | 139 | LUA_API void lua_newtable (lua_State *L); |
138 | 140 | ||
139 | 141 | ||
@@ -156,8 +158,7 @@ LUA_API int lua_call (lua_State *L, int nargs, int nresults); | |||
156 | LUA_API void lua_rawcall (lua_State *L, int nargs, int nresults); | 158 | LUA_API void lua_rawcall (lua_State *L, int nargs, int nresults); |
157 | LUA_API int lua_dofile (lua_State *L, const char *filename); | 159 | LUA_API int lua_dofile (lua_State *L, const char *filename); |
158 | LUA_API int lua_dostring (lua_State *L, const char *str); | 160 | LUA_API int lua_dostring (lua_State *L, const char *str); |
159 | LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, | 161 | LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, const char *name); |
160 | const char *name); | ||
161 | 162 | ||
162 | /* | 163 | /* |
163 | ** Garbage-collection functions | 164 | ** Garbage-collection functions |