diff options
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 15 |
1 files changed, 9 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.191 2004/06/02 17:37:03 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.192 2004/06/04 15:30:53 roberto Exp roberto $ |
| 3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
| 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
| 5 | ** http://www.lua.org mailto:info@lua.org | 5 | ** http://www.lua.org mailto:info@lua.org |
| @@ -37,11 +37,12 @@ | |||
| 37 | #define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) | 37 | #define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | /* error codes for `lua_pcall' */ | 40 | /* return codes for `lua_pcall', `lua_resume', and `lua_threadstatus' */ |
| 41 | #define LUA_ERRRUN 1 | 41 | #define LUA_YIELD 1 |
| 42 | #define LUA_ERRSYNTAX 2 | 42 | #define LUA_ERRRUN 2 |
| 43 | #define LUA_ERRMEM 3 | 43 | #define LUA_ERRSYNTAX 3 |
| 44 | #define LUA_ERRERR 4 | 44 | #define LUA_ERRMEM 4 |
| 45 | #define LUA_ERRERR 5 | ||
| 45 | 46 | ||
| 46 | 47 | ||
| 47 | typedef struct lua_State lua_State; | 48 | typedef struct lua_State lua_State; |
| @@ -165,6 +166,7 @@ LUA_API const char *lua_pushfstring (lua_State *L, const char *fmt, ...); | |||
| 165 | LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); | 166 | LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); |
| 166 | LUA_API void lua_pushboolean (lua_State *L, int b); | 167 | LUA_API void lua_pushboolean (lua_State *L, int b); |
| 167 | LUA_API void lua_pushlightuserdata (lua_State *L, void *p); | 168 | LUA_API void lua_pushlightuserdata (lua_State *L, void *p); |
| 169 | LUA_API int lua_pushthread (lua_State *L); | ||
| 168 | 170 | ||
| 169 | 171 | ||
| 170 | /* | 172 | /* |
| @@ -208,6 +210,7 @@ LUA_API int lua_dump (lua_State *L, lua_Chunkwriter writer, void *data); | |||
| 208 | */ | 210 | */ |
| 209 | LUA_API int lua_yield (lua_State *L, int nresults); | 211 | LUA_API int lua_yield (lua_State *L, int nresults); |
| 210 | LUA_API int lua_resume (lua_State *L, int narg); | 212 | LUA_API int lua_resume (lua_State *L, int narg); |
| 213 | LUA_API int lua_threadstatus (lua_State *L); | ||
| 211 | 214 | ||
| 212 | /* | 215 | /* |
| 213 | ** garbage-collection function and options | 216 | ** garbage-collection function and options |
