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.