diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-20 12:36:38 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-20 12:36:38 +0200 |
commit | 4226f9400d329467bf87b6bae2c9c57571250cb9 (patch) | |
tree | 3226de79c4466d5a042cf2fb2b635eddd9a9647f /docs | |
parent | 0f34fabd90b66c96ac309a68a019d584b6c8e917 (diff) | |
download | lanes-4226f9400d329467bf87b6bae2c9c57571250cb9.tar.gz lanes-4226f9400d329467bf87b6bae2c9c57571250cb9.tar.bz2 lanes-4226f9400d329467bf87b6bae2c9c57571250cb9.zip |
Revert overzealous upvalue check on on_state_create
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/index.html b/docs/index.html index ca91273..6e2b4ed 100644 --- a/docs/index.html +++ b/docs/index.html | |||
@@ -358,6 +358,7 @@ | |||
358 | <td> | 358 | <td> |
359 | 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 /> | 359 | 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 /> |
360 | 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 /> | 360 | 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 /> |
361 | If it is a Lua function, it will be transfered normally before the call.<br /> | ||
361 | Keeper states will call it as well, but only if it is a C function (<a href="#keepers">Keeper states</a> are not able to execute any user Lua code).<br /> | 362 | Keeper states will call it as well, but only if it is a C function (<a href="#keepers">Keeper states</a> are not able to execute any user Lua code).<br /> |
362 | Typical usage is twofold: | 363 | Typical usage is twofold: |
363 | <ul> | 364 | <ul> |
@@ -365,7 +366,6 @@ | |||
365 | <li>Load some additional C functions in the global space (of course only a C function will be able to do this).</li> | 366 | <li>Load some additional C functions in the global space (of course only a C function will be able to do this).</li> |
366 | </ul> | 367 | </ul> |
367 | 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 /> | 368 | 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 /> |
368 | If <tt>on_state_create()</tt> is a Lua function, it will be transfered normally before the call.<br /> | ||
369 | </td> | 369 | </td> |
370 | </tr> | 370 | </tr> |
371 | 371 | ||