aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-08-21 14:43:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-08-21 14:43:44 -0300
commitcc117253c83ec32d226a8f2226d5ca144804f873 (patch)
tree46551b01d3febf98d65d55276d5831a75e2e0062 /lua.h
parent8e226e6a09390a80fde98f192833fc85a5537376 (diff)
downloadlua-cc117253c83ec32d226a8f2226d5ca144804f873.tar.gz
lua-cc117253c83ec32d226a8f2226d5ca144804f873.tar.bz2
lua-cc117253c83ec32d226a8f2226d5ca144804f873.zip
new implementation for error handling: on error, function _ERRORMESSAGE
is called, which in turn calls _ALERT to write a message to stderr.
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index 477627ef..fa2baaf3 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.22 1998/06/15 21:34:14 roberto Exp roberto $ 2** $Id: lua.h,v 1.23 1998/06/18 16:51:53 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
@@ -11,7 +11,7 @@
11#ifndef lua_h 11#ifndef lua_h
12#define lua_h 12#define lua_h
13 13
14#define LUA_VERSION "Lua 3.1" 14#define LUA_VERSION "Lua 3.2 (alpha)"
15#define LUA_COPYRIGHT "Copyright (C) 1994-1998 TeCGraf, PUC-Rio" 15#define LUA_COPYRIGHT "Copyright (C) 1994-1998 TeCGraf, PUC-Rio"
16#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 16#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
17 17
@@ -32,7 +32,6 @@ lua_State *lua_setstate (lua_State *st);
32 32
33lua_Object lua_settagmethod (int tag, char *event); /* In: new method */ 33lua_Object lua_settagmethod (int tag, char *event); /* In: new method */
34lua_Object lua_gettagmethod (int tag, char *event); 34lua_Object lua_gettagmethod (int tag, char *event);
35lua_Object lua_seterrormethod (void); /* In: new method */
36 35
37int lua_newtag (void); 36int lua_newtag (void);
38int lua_copytagmethods (int tagto, int tagfrom); 37int lua_copytagmethods (int tagto, int tagfrom);
@@ -125,6 +124,8 @@ int (lua_clonetag) (int t);
125#define lua_clonetag(t) lua_copytagmethods(lua_newtag(), (t)) 124#define lua_clonetag(t) lua_copytagmethods(lua_newtag(), (t))
126 125
127 126
127lua_Object lua_seterrormethod (void); /* In: new method */
128
128/* ========================================================================== 129/* ==========================================================================
129** for compatibility with old versions. Avoid using these macros/functions 130** for compatibility with old versions. Avoid using these macros/functions
130** If your program does need any of these, define LUA_COMPAT2_5 131** If your program does need any of these, define LUA_COMPAT2_5