diff options
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | % $Id: manual.tex,v 1.47 2000/12/28 17:25:45 roberto Exp roberto $ | 1 | % $Id: manual.tex,v 1.48 2001/01/29 19:33:55 roberto Exp roberto $ |
2 | 2 | ||
3 | \documentclass[11pt]{article} | 3 | \documentclass[11pt]{article} |
4 | \usepackage{fullpage} | 4 | \usepackage{fullpage} |
@@ -134,7 +134,7 @@ Waldemar Celes | |||
134 | \tecgraf\ --- Computer Science Department --- PUC-Rio | 134 | \tecgraf\ --- Computer Science Department --- PUC-Rio |
135 | } | 135 | } |
136 | 136 | ||
137 | \date{{\small \tt\$Date: 2000/12/28 17:25:45 $ $}} | 137 | \date{{\small \tt\$Date: 2001/01/29 19:33:55 $ $}} |
138 | 138 | ||
139 | \maketitle | 139 | \maketitle |
140 | 140 | ||
@@ -2436,7 +2436,8 @@ to change the way such messages are shown | |||
2436 | 2436 | ||
2437 | \subsubsection*{\ff \T{assert (v [, message])}}\DefLIB{assert} | 2437 | \subsubsection*{\ff \T{assert (v [, message])}}\DefLIB{assert} |
2438 | Issues an \emph{``assertion failed!''} error | 2438 | Issues an \emph{``assertion failed!''} error |
2439 | when its argument \verb|v| is \nil. | 2439 | when its argument \verb|v| is \nil; |
2440 | otherwise, returns this argument. | ||
2440 | This function is equivalent to the following Lua function: | 2441 | This function is equivalent to the following Lua function: |
2441 | \begin{verbatim} | 2442 | \begin{verbatim} |
2442 | function assert (v, m) | 2443 | function assert (v, m) |
@@ -2444,6 +2445,7 @@ This function is equivalent to the following Lua function: | |||
2444 | m = m or "" | 2445 | m = m or "" |
2445 | error("assertion failed! " .. m) | 2446 | error("assertion failed! " .. m) |
2446 | end | 2447 | end |
2448 | return v | ||
2447 | end | 2449 | end |
2448 | \end{verbatim} | 2450 | \end{verbatim} |
2449 | 2451 | ||