aboutsummaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex11
1 files changed, 8 insertions, 3 deletions
diff --git a/manual.tex b/manual.tex
index 7b64e2a3..f8c40ba2 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 1.14 1998/06/15 21:34:14 roberto Exp roberto $ 1% $Id: manual.tex,v 1.15 1998/06/18 17:36:27 roberto Exp roberto $
2 2
3\documentclass[11pt]{article} 3\documentclass[11pt]{article}
4\usepackage{fullpage,bnf} 4\usepackage{fullpage,bnf}
@@ -39,7 +39,7 @@ Waldemar Celes
39\tecgraf\ --- Computer Science Department --- PUC-Rio 39\tecgraf\ --- Computer Science Department --- PUC-Rio
40} 40}
41 41
42%\date{\small \verb$Date: 1998/06/15 21:34:14 $} 42%\date{\small \verb$Date: 1998/06/18 17:36:27 $}
43 43
44\maketitle 44\maketitle
45 45
@@ -1602,6 +1602,8 @@ Function \verb|lua_dostring| executes only source code.
1602The third parameter to \verb|lua_dobuffer| (\verb|name|) 1602The third parameter to \verb|lua_dobuffer| (\verb|name|)
1603is the ``name of the chunk'', 1603is the ``name of the chunk'',
1604used in error messages and debug information. 1604used in error messages and debug information.
1605If \verb|name| is \verb|NULL|,
1606Lua gives a default name to the chunk.
1605In files this name is the file name, 1607In files this name is the file name,
1606and \verb|lua_dostring| uses a small prefix 1608and \verb|lua_dostring| uses a small prefix
1607of the string as the chunk name. 1609of the string as the chunk name.
@@ -1949,12 +1951,15 @@ or a non \nil\ value if the chunk returns no values.
1949It issues an error when called with a non string argument. 1951It issues an error when called with a non string argument.
1950\verb|dofile| is equivalent to the API function \verb|lua_dofile|. 1952\verb|dofile| is equivalent to the API function \verb|lua_dofile|.
1951 1953
1952\subsubsection*{\ff \T{dostring (string)}}\Deffunc{dostring} 1954\subsubsection*{\ff \T{dostring (string [, chunkname])}}\Deffunc{dostring}
1953This function executes a given string as a Lua chunk. 1955This function executes a given string as a Lua chunk.
1954If there is any error executing the string, 1956If there is any error executing the string,
1955\verb|dostring| returns \nil. 1957\verb|dostring| returns \nil.
1956Otherwise, it returns the values returned by the chunk, 1958Otherwise, it returns the values returned by the chunk,
1957or a non \nil\ value if the chunk returns no values. 1959or a non \nil\ value if the chunk returns no values.
1960An optional second parameter (\verb|chunkname|)
1961is the ``name of the chunk'',
1962used in error messages and debug information.
1958\verb|dostring| is equivalent to the API function \verb|lua_dostring|. 1963\verb|dostring| is equivalent to the API function \verb|lua_dostring|.
1959 1964
1960\subsubsection*{\ff \T{newtag ()}}\Deffunc{newtag}\label{pdf-newtag} 1965\subsubsection*{\ff \T{newtag ()}}\Deffunc{newtag}\label{pdf-newtag}