summaryrefslogtreecommitdiff
path: root/ngx_stream_lua-0.0.16/src/ngx_stream_lua_exception.h
diff options
context:
space:
mode:
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.h41
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: */