diff options
author | Mike Pall <mike> | 2017-04-07 12:12:03 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2017-04-07 12:12:03 +0200 |
commit | 9c685f7003388725c91ef38627113015676b6d65 (patch) | |
tree | 6f7538b8073a9c74ae8d2846e1c3c6f20a68523a /src/lua.h | |
parent | 22dfa63283276d5dc13205680bda961ec671aef6 (diff) | |
download | luajit-9c685f7003388725c91ef38627113015676b6d65.tar.gz luajit-9c685f7003388725c91ef38627113015676b6d65.tar.bz2 luajit-9c685f7003388725c91ef38627113015676b6d65.zip |
Refactor with LUA_OK.
Contributed by François Perrad.
Diffstat (limited to 'src/lua.h')
-rw-r--r-- | src/lua.h | 3 |
1 files changed, 2 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 |