aboutsummaryrefslogtreecommitdiff
path: root/docs/index.html
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-23 08:35:40 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-23 08:35:40 +0200
commit17ca8b54fdc0aa2df875fc7b80def4dd56959d7f (patch)
tree38cf24c341cd4165ccf58aac16eaea0725bb11ec /docs/index.html
parentd468b693d79ddb416c45669e5ca8400cbdc34e85 (diff)
downloadlanes-17ca8b54fdc0aa2df875fc7b80def4dd56959d7f.tar.gz
lanes-17ca8b54fdc0aa2df875fc7b80def4dd56959d7f.tar.bz2
lanes-17ca8b54fdc0aa2df875fc7b80def4dd56959d7f.zip
on_state_create receives a string argument, "lane" or "keeper"
Diffstat (limited to 'docs/index.html')
-rw-r--r--docs/index.html14
1 files changed, 5 insertions, 9 deletions
diff --git a/docs/index.html b/docs/index.html
index d0b06ae..47dc47c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -400,20 +400,16 @@
400 function/<tt>nil</tt> 400 function/<tt>nil</tt>
401 </td> 401 </td>
402 <td> 402 <td>
403 If provided, will be called in every created Lua state right after initializing the base libraries. 403 If provided, will be called in every created Lua state right after initializing the base libraries, with a single string argument, either <tt>"lane"</tt> or <tt>"keeper"</tt>.<br/>
404 <br /> 404 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.<br/>
405 Keeper states will call it as well, but only if it is a C function (keeper states are not able to execute any user Lua code). 405 Keeper states will call it as well, but only if it is a C function (keeper states are not able to execute any user Lua code).<br/>
406 <br />
407 Typical usage is twofold: 406 Typical usage is twofold:
408 <ul> 407 <ul>
409 <li>Tweak <tt>package.loaders</tt></li> 408 <li>Tweak <tt>package.loaders</tt></li>
410 <li>Load some additional C functions in the global space (of course only a C function will be able to do this).</li> 409 <li>Load some additional C functions in the global space (of course only a C function will be able to do this).</li>
411 </ul> 410 </ul>
412 That way, all changes in the state can be properly taken into account when building the function lookup database. Default is <tt>nil</tt>. 411 That way, all changes in the state can be properly taken into account when building the function lookup database. Default is <tt>nil</tt>.<br/>
413 <br /> 412 If <tt>on_state_create()</tt> is a Lua function, it will be transfered normally before the call.<br/>
414 If <tt>on_state_create()</tt> is a Lua function, it will be transfered normally before the call.
415 <br />
416 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.
417 </td> 413 </td>
418 </tr> 414 </tr>
419 415