diff options
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -18,8 +18,8 @@ | |||
18 | 18 | ||
19 | 19 | ||
20 | #define LUA_VERSION_MAJOR_N 5 | 20 | #define LUA_VERSION_MAJOR_N 5 |
21 | #define LUA_VERSION_MINOR_N 4 | 21 | #define LUA_VERSION_MINOR_N 5 |
22 | #define LUA_VERSION_RELEASE_N 6 | 22 | #define LUA_VERSION_RELEASE_N 0 |
23 | 23 | ||
24 | #define LUA_VERSION_NUM (LUA_VERSION_MAJOR_N * 100 + LUA_VERSION_MINOR_N) | 24 | #define LUA_VERSION_NUM (LUA_VERSION_MAJOR_N * 100 + LUA_VERSION_MINOR_N) |
25 | #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + LUA_VERSION_RELEASE_N) | 25 | #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + LUA_VERSION_RELEASE_N) |
@@ -159,11 +159,11 @@ extern const char lua_ident[]; | |||
159 | /* | 159 | /* |
160 | ** state manipulation | 160 | ** state manipulation |
161 | */ | 161 | */ |
162 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); | 162 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud, |
163 | unsigned int seed); | ||
163 | LUA_API void (lua_close) (lua_State *L); | 164 | LUA_API void (lua_close) (lua_State *L); |
164 | LUA_API lua_State *(lua_newthread) (lua_State *L); | 165 | LUA_API lua_State *(lua_newthread) (lua_State *L); |
165 | LUA_API int (lua_closethread) (lua_State *L, lua_State *from); | 166 | LUA_API int (lua_closethread) (lua_State *L, lua_State *from); |
166 | LUA_API int (lua_resetthread) (lua_State *L); /* Deprecated! */ | ||
167 | 167 | ||
168 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); | 168 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); |
169 | 169 | ||
@@ -425,6 +425,8 @@ LUA_API void (lua_closeslot) (lua_State *L, int idx); | |||
425 | 425 | ||
426 | #define LUA_NUMTAGS LUA_NUMTYPES | 426 | #define LUA_NUMTAGS LUA_NUMTYPES |
427 | 427 | ||
428 | #define lua_resetthread(L) lua_closethread(L,NULL) | ||
429 | |||
428 | /* }============================================================== */ | 430 | /* }============================================================== */ |
429 | 431 | ||
430 | /* | 432 | /* |