diff options
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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)|. | |||
1457 | The error handler method \see{error} can be changed with: | 1457 | The error handler method \see{error} can be changed with: |
1458 | \Deffunc{lua_seterrormethod} | 1458 | \Deffunc{lua_seterrormethod} |
1459 | \begin{verbatim} | 1459 | \begin{verbatim} |
1460 | lua_Object lua_seterrormethod (lua_CFunction method); | 1460 | lua_Object lua_seterrormethod (void); |
1461 | \end{verbatim} | 1461 | \end{verbatim} |
1462 | This function returns a \verb|lua_Object|, | 1462 | This function sets the object at the top of C2lua |
1463 | which is the old error method value. | 1463 | as the new error method, |
1464 | and returns the old error method value. | ||
1464 | 1465 | ||
1465 | Tag methods can be changed with: | 1466 | Tag methods can be changed with: |
1466 | \Deffunc{lua_settagmethod} | 1467 | \Deffunc{lua_settagmethod} |
1467 | \begin{verbatim} | 1468 | \begin{verbatim} |
1468 | lua_Object lua_settagmethod (int tag, char *event, lua_CFunction method); | 1469 | lua_Object lua_settagmethod (int tag, char *event); |
1469 | \end{verbatim} | 1470 | \end{verbatim} |
1470 | The first parameter is the tag, | 1471 | The first parameter is the tag, |
1471 | the second is the event name \see{tag-method}, | 1472 | the second is the event name \see{tag-method}; |
1472 | and the third is a CFunction to be used as the new method. | 1473 | the new method is pushed from C2lua. |
1473 | This function returns a \verb|lua_Object|, | 1474 | This function returns a \verb|lua_Object|, |
1474 | which is the old tag method value. | 1475 | which is the old tag method value. |
1475 | To get just the current value of a tag method, | 1476 | To get just the current value of a tag method, |