Skip to content

Commit f3102fe

Browse files
committed
minor fixes in the NGX_LUA_ABORT_AT_PANIC macro.
1 parent de46d20 commit f3102fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_http_lua_exception.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jmp_buf ngx_http_lua_exception;
3030
int
3131
ngx_http_lua_atpanic(lua_State *L)
3232
{
33-
#if (NGX_LUA_ABORT_AT_PANIC)
33+
#ifdef NGX_LUA_ABORT_AT_PANIC
3434
abort();
3535
#else
3636
u_char *s = NULL;
@@ -50,9 +50,9 @@ ngx_http_lua_atpanic(lua_State *L)
5050

5151
/* restore nginx execution */
5252
NGX_LUA_EXCEPTION_THROW(1);
53-
#endif
5453

5554
/* impossible to reach here */
55+
#endif
5656
}
5757

5858
/* vi:set ft=c ts=4 sw=4 et fdm=marker: */

0 commit comments

Comments
 (0)