summaryrefslogtreecommitdiff
path: root/Doc/Manual/Lua.html
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2005-09-24 09:41:19 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2005-09-24 09:41:19 +0000
commit31d6b34b77c000a309caca18668a7204437d4f67 (patch)
tree0b6e0720420f318bf776f0601b88fcaf784240dc /Doc/Manual/Lua.html
parenta6ac0941e71e1d292ad3967bae81a73d96bbdb3a (diff)
downloadswig-31d6b34b77c000a309caca18668a7204437d4f67.tar.gz
html validation fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Doc/Manual/Lua.html')
-rw-r--r--Doc/Manual/Lua.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/Manual/Lua.html b/Doc/Manual/Lua.html
index 1e64f89c0..b83cb69e1 100644
--- a/Doc/Manual/Lua.html
+++ b/Doc/Manual/Lua.html
@@ -923,9 +923,10 @@ Assuming that you had some global data that you wanted to share between C and Lu
extern double Foo;
</pre></div>
<p>
-SWIG will effectively generate the pair of functions <div class="code"><pre>void Foo_set(double);
-double Foo_get();
+SWIG will effectively generate the pair of functions
</p>
+<div class="code"><pre>void Foo_set(double);
+double Foo_get();
</pre></div>
<p>
At initialisation time, it will then add to the interpreter a table called 'example', which represents the module. It will then add all its functions to the module. But it also adds a metatable to this table, which has two functions (<tt>__index</tt> and <tt>__newindex</tt>) as well as two tables (<tt>.get</tt> and <tt>.set</tt>) The following Lua code will show these hidden features.