From 218911f7da870df1b7f06fd0ed5c71071031bcc6 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 24 Sep 2005 09:41:19 +0000 Subject: [PATCH] html validation fixes git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7513 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Doc/Manual/Lua.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SWIG/Doc/Manual/Lua.html b/SWIG/Doc/Manual/Lua.html index 1e64f89c0..b83cb69e1 100644 --- a/SWIG/Doc/Manual/Lua.html +++ b/SWIG/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;

-SWIG will effectively generate the pair of functions

void Foo_set(double);
-double Foo_get();
+SWIG will effectively generate the pair of functions
 

+
void Foo_set(double);
+double Foo_get();
 

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 (__index and __newindex) as well as two tables (.get and .set) The following Lua code will show these hidden features.