diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2013-01-26 20:21:39 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2013-01-26 20:21:39 +0100 |
commit | fb0c67b1c95b6a595c0cd34a66136af6193b4d1b (patch) | |
tree | badb5e95c0b7d9acb6be371c9163801b816b8731 /src/lanes.c | |
parent | 68d8db431ec2b739dc53233d6b4d8aeee9324e48 (diff) | |
download | lanes-3.4.4.tar.gz lanes-3.4.4.tar.bz2 lanes-3.4.4.zip |
version 3.4.4v3.4.4
* bugfix: take into account the fact that "coroutine" is no longer part of base library in Lua 5.2
* bugfix: if "bit32" was listed in the libraries, it wouldn't open (library list parsing failing on digits)
* bugfix: Use luaL_requiref() to open standard libraries in Lua 5.2 as we should
* bugfix: any Lua state created by Lanes reuses the allocator function of the originating state
* bugfix: don't call on_state_create() while GC is suspended during lua state initialization
Diffstat (limited to 'src/lanes.c')
-rw-r--r-- | src/lanes.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lanes.c b/src/lanes.c index 6fec951..62d56c1 100644 --- a/src/lanes.c +++ b/src/lanes.c | |||
@@ -52,7 +52,7 @@ | |||
52 | * ... | 52 | * ... |
53 | */ | 53 | */ |
54 | 54 | ||
55 | char const* VERSION = "3.4.3"; | 55 | char const* VERSION = "3.4.4"; |
56 | 56 | ||
57 | /* | 57 | /* |
58 | =============================================================================== | 58 | =============================================================================== |
@@ -1894,11 +1894,7 @@ LUAG_FUNC( thread_new ) | |||
1894 | 1894 | ||
1895 | // populate with selected libraries at the same time | 1895 | // populate with selected libraries at the same time |
1896 | // | 1896 | // |
1897 | L2 = luaG_newstate( libs, on_state_create); | 1897 | L2 = luaG_newstate( L, libs, on_state_create); |
1898 | if (!L2) | ||
1899 | { | ||
1900 | return luaL_error( L, "'luaL_newstate()' failed; out of memory"); | ||
1901 | } | ||
1902 | 1898 | ||
1903 | STACK_GROW( L, 2); | 1899 | STACK_GROW( L, 2); |
1904 | STACK_GROW( L2, 3); | 1900 | STACK_GROW( L2, 3); |