aboutsummaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex14
1 files changed, 9 insertions, 5 deletions
diff --git a/manual.tex b/manual.tex
index cbde48e0..7979064d 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 1.23 1999/02/12 19:23:02 roberto Exp roberto $ 1% $Id: manual.tex,v 1.24 1999/02/25 19:13:56 roberto Exp roberto $
2 2
3\documentclass[11pt]{article} 3\documentclass[11pt]{article}
4\usepackage{fullpage,bnf} 4\usepackage{fullpage,bnf}
@@ -41,7 +41,7 @@ Waldemar Celes
41\tecgraf\ --- Computer Science Department --- PUC-Rio 41\tecgraf\ --- Computer Science Department --- PUC-Rio
42} 42}
43 43
44%\date{\small \verb$Date: 1999/02/12 19:23:02 $} 44%\date{\small \verb$Date: 1999/02/25 19:13:56 $}
45 45
46\maketitle 46\maketitle
47 47
@@ -2926,12 +2926,16 @@ it accepts only a handle returned by
2926 2926
2927Three other functions produce extra information about a function: 2927Three other functions produce extra information about a function:
2928\begin{verbatim} 2928\begin{verbatim}
2929void lua_funcinfo (lua_Object func, char **filename, int *linedefined); 2929void lua_funcinfo (lua_Object func, char **source, int *linedefined);
2930int lua_currentline (lua_Function func); 2930int lua_currentline (lua_Function func);
2931char *lua_getobjname (lua_Object o, char **name); 2931char *lua_getobjname (lua_Object o, char **name);
2932\end{verbatim} 2932\end{verbatim}
2933\verb|lua_funcinfo| gives the file name and the line where the 2933\verb|lua_funcinfo| gives the source and the line where the
2934given function has been defined. 2934given function has been defined:
2935If the function was defined in a string,
2936\verb|source| is that string;
2937If the function was defined in a file,
2938\verb|source| starts with a \verb|@| followed by the file name.
2935If the ``function'' is in fact the main code of a chunk, 2939If the ``function'' is in fact the main code of a chunk,
2936then \verb|linedefined| is 0. 2940then \verb|linedefined| is 0.
2937If the function is a C function, 2941If the function is a C function,