diff options
Diffstat (limited to 'src/lua.h')
| -rw-r--r-- | src/lua.h | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -39,7 +39,8 @@ | |||
| 39 | #define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) | 39 | #define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | /* thread status; 0 is OK */ | 42 | /* thread status */ |
| 43 | #define LUA_OK 0 | ||
| 43 | #define LUA_YIELD 1 | 44 | #define LUA_YIELD 1 |
| 44 | #define LUA_ERRRUN 2 | 45 | #define LUA_ERRRUN 2 |
| 45 | #define LUA_ERRSYNTAX 3 | 46 | #define LUA_ERRSYNTAX 3 |
| @@ -226,6 +227,7 @@ LUA_API int (lua_status) (lua_State *L); | |||
| 226 | #define LUA_GCSTEP 5 | 227 | #define LUA_GCSTEP 5 |
| 227 | #define LUA_GCSETPAUSE 6 | 228 | #define LUA_GCSETPAUSE 6 |
| 228 | #define LUA_GCSETSTEPMUL 7 | 229 | #define LUA_GCSETSTEPMUL 7 |
| 230 | #define LUA_GCISRUNNING 9 | ||
| 229 | 231 | ||
| 230 | LUA_API int (lua_gc) (lua_State *L, int what, int data); | 232 | LUA_API int (lua_gc) (lua_State *L, int what, int data); |
| 231 | 233 | ||
| @@ -346,6 +348,13 @@ LUA_API void *lua_upvalueid (lua_State *L, int idx, int n); | |||
| 346 | LUA_API void lua_upvaluejoin (lua_State *L, int idx1, int n1, int idx2, int n2); | 348 | LUA_API void lua_upvaluejoin (lua_State *L, int idx1, int n1, int idx2, int n2); |
| 347 | LUA_API int lua_loadx (lua_State *L, lua_Reader reader, void *dt, | 349 | LUA_API int lua_loadx (lua_State *L, lua_Reader reader, void *dt, |
| 348 | const char *chunkname, const char *mode); | 350 | const char *chunkname, const char *mode); |
| 351 | LUA_API const lua_Number *lua_version (lua_State *L); | ||
| 352 | LUA_API void lua_copy (lua_State *L, int fromidx, int toidx); | ||
| 353 | LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *isnum); | ||
| 354 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum); | ||
| 355 | |||
| 356 | /* From Lua 5.3. */ | ||
| 357 | LUA_API int lua_isyieldable (lua_State *L); | ||
| 349 | 358 | ||
| 350 | 359 | ||
| 351 | struct lua_Debug { | 360 | struct lua_Debug { |
