1
/* vim:set ft=c ts=4 sw=4 et fdm=marker: */
2
#ifndef NGX_HTTP_LUA_EXCEPTION_H
3
#define NGX_HTTP_LUA_EXCEPTION_H
6
#include "ngx_http_lua_common.h"
9
#define NGX_LUA_EXCEPTION_TRY if (setjmp(ngx_http_lua_exception) == 0)
10
#define NGX_LUA_EXCEPTION_CATCH else
11
#define NGX_LUA_EXCEPTION_THROW(x) longjmp(ngx_http_lua_exception, (x))
14
extern jmp_buf ngx_http_lua_exception;
17
int ngx_http_lua_atpanic(lua_State *L);
20
#endif /* NGX_HTTP_LUA_EXCEPTION_H */