summaryrefslogtreecommitdiff
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
commit85e0f90e1eb46f468bcb0edef7ef45c655131e5f (patch)
tree2ed3dd22e0ace2cc518f3e7fbfd7415dfa87f44f
parent4d34770f67616cb861e42b0d0846ea16a27ebad4 (diff)
downloadlanes-85e0f90e1eb46f468bcb0edef7ef45c655131e5f.tar.gz
lanes-85e0f90e1eb46f468bcb0edef7ef45c655131e5f.tar.bz2
lanes-85e0f90e1eb46f468bcb0edef7ef45c655131e5f.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
-rw-r--r--index.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/index.html b/index.html
index f25463d..931a961 100644
--- a/index.html
+++ b/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