diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2013-01-30 20:28:47 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2013-01-30 20:28:47 +0100 |
commit | b657f38535c3c27a848353ef853d6667d6acc917 (patch) | |
tree | 8679a62c0b6343eae4781cff10a0ea60460d9cb4 /src/tools.h | |
parent | 3377b95704e611a288791fee6a7bc59c5ecebf2d (diff) | |
download | lanes-b657f38535c3c27a848353ef853d6667d6acc917.tar.gz lanes-b657f38535c3c27a848353ef853d6667d6acc917.tar.bz2 lanes-b657f38535c3c27a848353ef853d6667d6acc917.zip |
version 3.5.0
* new: API lanes.require(), use it instead of regular require() for modules that export C functions you need to send over.
* new: lanes no longer require 'lanes.core' by default in every created state. Use {required={"lanes.core"}} if you need to transfer lanes functions.
* internal: because of the above, reworked the timer implementation to remove upvalue-dependency on lanes.core
* new: API lanes.timer_lane, to be able to operate on timer lane if need be
* improved: if a module is a full userdata, scan its metatable for function database population
* improved: on_state_create can be a Lua function
* changed: on_state_create is called after the base libraries are loaded
* package[loaders|searchers] is no longer transfered as function naming depends on slot order
* internal: changed separator from '.' to '/' in lookup databases to be able to distinguish search levels and dot coming from module names
* added some mode debug spew
* updated tests to reflect the above changes
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools.h b/src/tools.h index f79d2ad..a06e23f 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -78,11 +78,9 @@ extern int debugspew_indent_depth; | |||
78 | #define luaG_optunsigned(L,i,d) ((uint_t) luaL_optinteger(L,i,d)) | 78 | #define luaG_optunsigned(L,i,d) ((uint_t) luaL_optinteger(L,i,d)) |
79 | #define luaG_tounsigned(L,i) ((uint_t) lua_tointeger(L,i)) | 79 | #define luaG_tounsigned(L,i) ((uint_t) lua_tointeger(L,i)) |
80 | 80 | ||
81 | #define luaG_isany(L,i) (!lua_isnil(L,i)) | ||
82 | |||
83 | void luaG_dump( lua_State* L ); | 81 | void luaG_dump( lua_State* L ); |
84 | 82 | ||
85 | lua_State* luaG_newstate( lua_State* _from, char const* libs, lua_CFunction _on_state_create); | 83 | lua_State* luaG_newstate( lua_State* _from, int const _on_state_create, char const* libs); |
86 | 84 | ||
87 | typedef struct { | 85 | typedef struct { |
88 | volatile int refcount; | 86 | volatile int refcount; |
@@ -96,6 +94,7 @@ int luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n); | |||
96 | int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n); | 94 | int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n); |
97 | 95 | ||
98 | int luaG_nameof( lua_State* L); | 96 | int luaG_nameof( lua_State* L); |
97 | int luaG_new_require( lua_State* L); | ||
99 | 98 | ||
100 | // Lock for reference counter inc/dec locks (to be initialized by outside code) | 99 | // Lock for reference counter inc/dec locks (to be initialized by outside code) |
101 | // | 100 | // |