diff options
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 | ||
2927 | Three other functions produce extra information about a function: | 2927 | Three other functions produce extra information about a function: |
2928 | \begin{verbatim} | 2928 | \begin{verbatim} |
2929 | void lua_funcinfo (lua_Object func, char **filename, int *linedefined); | 2929 | void lua_funcinfo (lua_Object func, char **source, int *linedefined); |
2930 | int lua_currentline (lua_Function func); | 2930 | int lua_currentline (lua_Function func); |
2931 | char *lua_getobjname (lua_Object o, char **name); | 2931 | char *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 |
2934 | given function has been defined. | 2934 | given function has been defined: |
2935 | If the function was defined in a string, | ||
2936 | \verb|source| is that string; | ||
2937 | If the function was defined in a file, | ||
2938 | \verb|source| starts with a \verb|@| followed by the file name. | ||
2935 | If the ``function'' is in fact the main code of a chunk, | 2939 | If the ``function'' is in fact the main code of a chunk, |
2936 | then \verb|linedefined| is 0. | 2940 | then \verb|linedefined| is 0. |
2937 | If the function is a C function, | 2941 | If the function is a C function, |