diff options
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -102,7 +102,8 @@ LUA_API void *debug_realloc (void *ud, void *block, | |||
102 | size_t osize, size_t nsize); | 102 | size_t osize, size_t nsize); |
103 | 103 | ||
104 | #if defined(lua_c) | 104 | #if defined(lua_c) |
105 | #define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) | 105 | #define luaL_newstate() \ |
106 | lua_newstate(debug_realloc, &l_memcontrol, luaL_makeseed(NULL)) | ||
106 | #define luai_openlibs(L) \ | 107 | #define luai_openlibs(L) \ |
107 | { luaL_openlibs(L); \ | 108 | { luaL_openlibs(L); \ |
108 | luaL_requiref(L, "T", luaB_opentests, 1); \ | 109 | luaL_requiref(L, "T", luaB_opentests, 1); \ |