aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-22 11:40:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-22 11:40:23 -0300
commitf388ee4a822b3d8027ed7c28aa21e9406e4a11eb (patch)
tree33053e6e31ac1dee0fe27ff7fdba64325a624fe1 /lua.h
parent30ad4c75db38639f52fb1c8be1c5a3f5b58e776f (diff)
downloadlua-f388ee4a822b3d8027ed7c28aa21e9406e4a11eb.tar.gz
lua-f388ee4a822b3d8027ed7c28aa21e9406e4a11eb.tar.bz2
lua-f388ee4a822b3d8027ed7c28aa21e9406e4a11eb.zip
new way to handle errors
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/lua.h b/lua.h
index 4764e1d1..52db9d61 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.126 2002/04/05 18:54:31 roberto Exp roberto $ 2** $Id: lua.h,v 1.127 2002/04/16 17:08:28 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: info@lua.org 5** e-mail: info@lua.org
@@ -22,9 +22,6 @@
22#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 22#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
23 23
24 24
25/* name of global variable with error handler */
26#define LUA_ERRORMESSAGE "_ERRORMESSAGE"
27
28 25
29/* option for multiple returns in `lua_call' */ 26/* option for multiple returns in `lua_call' */
30#define LUA_MULTRET (-1) 27#define LUA_MULTRET (-1)
@@ -173,11 +170,12 @@ LUA_API void lua_setmetatable (lua_State *L, int objindex);
173*/ 170*/
174LUA_API int lua_call (lua_State *L, int nargs, int nresults); 171LUA_API int lua_call (lua_State *L, int nargs, int nresults);
175LUA_API void lua_rawcall (lua_State *L, int nargs, int nresults); 172LUA_API void lua_rawcall (lua_State *L, int nargs, int nresults);
173LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errf);
176LUA_API int lua_loadfile (lua_State *L, const char *filename); 174LUA_API int lua_loadfile (lua_State *L, const char *filename);
177LUA_API int lua_dofile (lua_State *L, const char *filename);
178LUA_API int lua_dostring (lua_State *L, const char *str);
179LUA_API int lua_loadbuffer (lua_State *L, const char *buff, size_t size, 175LUA_API int lua_loadbuffer (lua_State *L, const char *buff, size_t size,
180 const char *name); 176 const char *name);
177LUA_API int lua_dofile (lua_State *L, const char *filename);
178LUA_API int lua_dostring (lua_State *L, const char *str);
181LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, 179LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size,
182 const char *name); 180 const char *name);
183 181