From fbeed52fc40edd41d668f337780425993665fa6d Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Mon, 26 Mar 2018 12:21:52 -0700 Subject: [PATCH] constants: added the remaining of the core constants. --- src/subsys/ngx_subsys_lua_consts.c.tt2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/subsys/ngx_subsys_lua_consts.c.tt2 b/src/subsys/ngx_subsys_lua_consts.c.tt2 index 6149d41..5b40e0a 100644 --- a/src/subsys/ngx_subsys_lua_consts.c.tt2 +++ b/src/subsys/ngx_subsys_lua_consts.c.tt2 @@ -21,17 +21,23 @@ ngx_[% subsys %]_lua_inject_core_consts(lua_State *L) lua_pushinteger(L, NGX_OK); lua_setfield(L, -2, "OK"); + lua_pushinteger(L, NGX_ERROR); + lua_setfield(L, -2, "ERROR"); + lua_pushinteger(L, NGX_AGAIN); lua_setfield(L, -2, "AGAIN"); + lua_pushinteger(L, NGX_BUSY); + lua_setfield(L, -2, "BUSY"); + lua_pushinteger(L, NGX_DONE); lua_setfield(L, -2, "DONE"); lua_pushinteger(L, NGX_DECLINED); lua_setfield(L, -2, "DECLINED"); - lua_pushinteger(L, NGX_ERROR); - lua_setfield(L, -2, "ERROR"); + lua_pushinteger(L, NGX_ABORT); + lua_setfield(L, -2, "ABORT"); lua_pushlightuserdata(L, NULL); lua_setfield(L, -2, "null");