Update of /cvsroot/luabind/luabind/luabind/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30994/doc
Modified Files:
Tag: luabind_rc_0_7
docs.html docs.rst
Log Message:
fixed typo and added references for retrieving debug info from lua
Index: docs.html
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/doc/docs.html,v
retrieving revision 1.54.2.3
retrieving revision 1.54.2.4
diff -u -d -r1.54.2.3 -r1.54.2.4
--- docs.html 10 Jan 2006 00:31:39 -0000 1.54.2.3
+++ docs.html 10 Jan 2006 00:36:47 -0000 1.54.2.4
@@ -7,7 +7,7 @@
<title>luabind</title>
<meta name="author" content="Daniel Wallin, Arvid Norberg" />
<meta name="copyright" content="Copyright Daniel Wallin, Arvid Norberg 2003." />
-<meta name="date" content="2006-01-09" />
+<meta name="date" content="2006-01-10" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
@@ -22,9 +22,9 @@
<tr><th class="docinfo-name">Copyright:</th>
<td>Copyright Daniel Wallin, Arvid Norberg 2003.</td></tr>
<tr><th class="docinfo-name">Date:</th>
-<td>2006-01-09</td></tr>
+<td>2006-01-10</td></tr>
<tr><th class="docinfo-name">Revision:</th>
-<td>1.26.2.2</td></tr>
+<td>1.26.2.3</td></tr>
<tr class="field"><th class="docinfo-name">License:</th><td class="field-body"><p class="first">Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
@@ -2645,13 +2645,17 @@
returned by a failed protected call. For more information on how to use the
pcall_callback function, see <tt class="docutils literal"><span class="pre">errfunc</span></tt> under the
<a class="reference" href="http://www.lua.org/manual/5.0/manual.html#3.15">pcall section of the lua manual</a>.</p>
+<p>For more information on how to retrieve debugging information from lua, see
+<a class="reference" href="http://www.lua.org/manual/5.0/manual.html#4">the debug section of the lua manual</a>.</p>
<p>The message returned by the <tt class="docutils literal"><span class="pre">pcall_callback</span></tt> is accessable as the top lua
value on the stack. For example, if you would like to access it as a luabind
object, you could do like this:</p>
<pre class="literal-block">
catch(error& e)
-object error_msg(from_stack(e.state(), -1));
-std::cout << error_msg << std::endl;
+{
+ object error_msg(from_stack(e.state(), -1));
+ std::cout << error_msg << std::endl;
+}
</pre>
<div class="section" id="build-options">
<h2><a name="build-options">14.1 Build options</a></h2>
Index: docs.rst
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/doc/docs.rst,v
retrieving revision 1.26.2.3
retrieving revision 1.26.2.4
diff -u -d -r1.26.2.3 -r1.26.2.4
--- docs.rst 10 Jan 2006 00:31:40 -0000 1.26.2.3
+++ docs.rst 10 Jan 2006 00:36:49 -0000 1.26.2.4
@@ -2135,16 +2135,22 @@
pcall_callback function, see ``errfunc`` under the
`pcall section of the lua manual`_.
+For more information on how to retrieve debugging information from lua, see
+`the debug section of the lua manual`_.
+
The message returned by the ``pcall_callback`` is accessable as the top lua
value on the stack. For example, if you would like to access it as a luabind
object, you could do like this::
catch(error& e)
- object error_msg(from_stack(e.state(), -1));
- std::cout << error_msg << std::endl;
+ {
+ object error_msg(from_stack(e.state(), -1));
+ std::cout << error_msg << std::endl;
+ }
.. _Lua documentation: http://www.lua.org/manual/5.0/manual.html
.. _`pcall section of the lua manual`: http://www.lua.org/manual/5.0/manual.html#3.15
+.. _`the debug section of the lua manual`: http://www.lua.org/manual/5.0/manual.html#4
Build options
|