aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-01-06 10:40:14 +0100
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-01-06 10:40:14 +0100
commitb335cbcc9f07dc71999b885ffa2962c0ec00f5eb (patch)
treead6398a6f7e5ef155631b984bd41d07d535ea1f9 /docs
parent132e85cb40f3a88efdb66a6344061bade628fcda (diff)
downloadlanes-b335cbcc9f07dc71999b885ffa2962c0ec00f5eb.tar.gz
lanes-b335cbcc9f07dc71999b885ffa2962c0ec00f5eb.tar.bz2
lanes-b335cbcc9f07dc71999b885ffa2962c0ec00f5eb.zip
fix on_state_create circular logic issue
* if config.on_state_create() is a C function, call it by direct C closure reconstruction in newly created states * bumped version to 3.7.6
Diffstat (limited to 'docs')
-rw-r--r--docs/index.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/index.html b/docs/index.html
index f25463d..931a961 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -64,13 +64,13 @@
64 <font size="-1"> 64 <font size="-1">
65 <p> 65 <p>
66 <br> 66 <br>
67 <i>Copyright &copy; 2007-13 Asko Kauppi, Benoit Germain. All rights reserved.</i> 67 <i>Copyright &copy; 2007-14 Asko Kauppi, Benoit Germain. All rights reserved.</i>
68 <br> 68 <br>
69 Lua Lanes is published under the same <a href="http://en.wikipedia.org/wiki/MIT_License">MIT license</a> as Lua 5.1 and 5.2. 69 Lua Lanes is published under the same <a href="http://en.wikipedia.org/wiki/MIT_License">MIT license</a> as Lua 5.1 and 5.2.
70 </p> 70 </p>
71 71
72 <p> 72 <p>
73 This document was revised on 20-Dec-13, and applies to version <tt>3.7.5</tt>. 73 This document was revised on 06-Jan-14, and applies to version <tt>3.7.6</tt>.
74 </p> 74 </p>
75 </font> 75 </font>
76 </center> 76 </center>
@@ -356,13 +356,17 @@
356 </td> 356 </td>
357 <td> 357 <td>
358 If provided, will be called in every created Lua state (keepers and lanes) right after initializing the base libraries. 358 If provided, will be called in every created Lua state (keepers and lanes) right after initializing the base libraries.
359 <br> 359 <br/>
360 Typical usage is twofold: 360 Typical usage is twofold:
361 <ul> 361 <ul>
362 <li>Tweak <tt>package.loaders</tt></li> 362 <li>Tweak <tt>package.loaders</tt></li>
363 <li>Load some additional C functions in the global space (of course only a C function will be able to do this).</li> 363 <li>Load some additional C functions in the global space (of course only a C function will be able to do this).</li>
364 </ul> 364 </ul>
365 That way, all changes in the state can be properly taken into account when building the function lookup database. Default is <tt>nil</tt>. 365 That way, all changes in the state can be properly taken into account when building the function lookup database. Default is <tt>nil</tt>.
366 <br/>
367 (Since version 3.7.6) If <tt>on_state_create()</tt> is a Lua function, it will be transfered normally before the call.
368 <br/>
369 If it is a C function, a C closure will be reconstructed in the created state from the C pointer. Lanes will raise an error if the function has upvalues.
366 </td> 370 </td>
367 </tr> 371 </tr>
368 372