diff options
author | kaiwu <kaiwu2004@gmail.com> | 2025-03-01 12:42:23 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2025-03-01 12:42:23 +0800 |
commit | 3f33461e4948bf05e60bdff35ec6c57a649c7860 (patch) | |
tree | 284c2ba95a41536ae1bff6bea710db0709a64739 /ngx_stream_lua-0.0.16/src/ngx_stream_lua_exception.h | |
download | openresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.tar.gz openresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.zip |
openresty bundle
Diffstat (limited to 'ngx_stream_lua-0.0.16/src/ngx_stream_lua_exception.h')
-rw-r--r-- | ngx_stream_lua-0.0.16/src/ngx_stream_lua_exception.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ngx_stream_lua-0.0.16/src/ngx_stream_lua_exception.h b/ngx_stream_lua-0.0.16/src/ngx_stream_lua_exception.h new file mode 100644 index 0000000..2e90863 --- /dev/null +++ b/ngx_stream_lua-0.0.16/src/ngx_stream_lua_exception.h @@ -0,0 +1,41 @@ + +/* + * !!! DO NOT EDIT DIRECTLY !!! + * This file was automatically generated from the following template: + * + * src/subsys/ngx_subsys_lua_exception.h.tt2 + */ + + +/* + * Copyright (C) Xiaozhe Wang (chaoslawful) + * Copyright (C) Yichun Zhang (agentzh) + */ + + +#ifndef _NGX_STREAM_LUA_EXCEPTION_H_INCLUDED_ +#define _NGX_STREAM_LUA_EXCEPTION_H_INCLUDED_ + + +#include "ngx_stream_lua_common.h" + + +#define NGX_LUA_EXCEPTION_TRY \ + if (setjmp(ngx_stream_lua_exception) == 0) + +#define NGX_LUA_EXCEPTION_CATCH \ + else + +#define NGX_LUA_EXCEPTION_THROW(x) \ + longjmp(ngx_stream_lua_exception, (x)) + + +extern jmp_buf ngx_stream_lua_exception; + + +int ngx_stream_lua_atpanic(lua_State *L); + + +#endif /* _NGX_STREAM_LUA_EXCEPTION_H_INCLUDED_ */ + +/* vi:set ft=c ts=4 sw=4 et fdm=marker: */ |