aboutsummaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-19 15:03:04 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-19 15:03:04 -0300
commit88f020b626d1b5b10b5d12e04bf103409a5e4308 (patch)
treee8d65e90ce914acebbd74c528b660db21ef27084 /manual.tex
parenta38f093f0540bce0207bb2dc27f1779f41c6d48b (diff)
downloadlua-88f020b626d1b5b10b5d12e04bf103409a5e4308.tar.gz
lua-88f020b626d1b5b10b5d12e04bf103409a5e4308.tar.bz2
lua-88f020b626d1b5b10b5d12e04bf103409a5e4308.zip
new interface to "lua_seterrormethod" and "lua_settagmethod", to
allow the use of Lua functions too.
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex17
1 files changed, 9 insertions, 8 deletions
diff --git a/manual.tex b/manual.tex
index 6e6d524e..2d19ac88 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 2.1 1997/06/18 20:14:52 roberto Exp roberto $ 1% $Id: manual.tex,v 2.2 1997/06/18 21:11:53 roberto Exp roberto $
2 2
3\documentstyle[fullpage,11pt,bnf]{article} 3\documentstyle[fullpage,11pt,bnf]{article}
4 4
@@ -38,7 +38,7 @@ Waldemar Celes
38\tecgraf\ --- Computer Science Department --- PUC-Rio 38\tecgraf\ --- Computer Science Department --- PUC-Rio
39} 39}
40 40
41\date{\small \verb$Date: 1997/06/18 20:14:52 $} 41\date{\small \verb$Date: 1997/06/18 21:11:53 $}
42 42
43\maketitle 43\maketitle
44 44
@@ -1457,19 +1457,20 @@ Otherwise, the whole program terminates with a call to \verb|exit(1)|.
1457The error handler method \see{error} can be changed with: 1457The error handler method \see{error} can be changed with:
1458\Deffunc{lua_seterrormethod} 1458\Deffunc{lua_seterrormethod}
1459\begin{verbatim} 1459\begin{verbatim}
1460lua_Object lua_seterrormethod (lua_CFunction method); 1460lua_Object lua_seterrormethod (void);
1461\end{verbatim} 1461\end{verbatim}
1462This function returns a \verb|lua_Object|, 1462This function sets the object at the top of C2lua
1463which is the old error method value. 1463as the new error method,
1464and returns the old error method value.
1464 1465
1465Tag methods can be changed with: 1466Tag methods can be changed with:
1466\Deffunc{lua_settagmethod} 1467\Deffunc{lua_settagmethod}
1467\begin{verbatim} 1468\begin{verbatim}
1468lua_Object lua_settagmethod (int tag, char *event, lua_CFunction method); 1469lua_Object lua_settagmethod (int tag, char *event);
1469\end{verbatim} 1470\end{verbatim}
1470The first parameter is the tag, 1471The first parameter is the tag,
1471the second is the event name \see{tag-method}, 1472the second is the event name \see{tag-method};
1472and the third is a CFunction to be used as the new method. 1473the new method is pushed from C2lua.
1473This function returns a \verb|lua_Object|, 1474This function returns a \verb|lua_Object|,
1474which is the old tag method value. 1475which is the old tag method value.
1475To get just the current value of a tag method, 1476To get just the current value of a tag method,