aboutsummaryrefslogtreecommitdiff
path: root/src/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/except.c')
-rw-r--r--src/except.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/except.c b/src/except.c
index c9eb20e..0482e1c 100644
--- a/src/except.c
+++ b/src/except.c
@@ -1,12 +1,22 @@
1/*=========================================================================*\
2* Simple exception support
3* LuaSocket toolkit
4*
5* RCS ID: $Id$
6\*=========================================================================*/
1#include <lauxlib.h> 7#include <lauxlib.h>
2#include <stdio.h> 8#include <stdio.h>
3 9
4#include "except.h" 10#include "except.h"
5 11
12/*=========================================================================*\
13* Internal function prototypes.
14\*=========================================================================*/
6static int global_try(lua_State *L); 15static int global_try(lua_State *L);
7static int global_protect(lua_State *L); 16static int global_protect(lua_State *L);
8static int protected(lua_State *L); 17static int protected(lua_State *L);
9 18
19/* except functions */
10static luaL_reg func[] = { 20static luaL_reg func[] = {
11 {"try", global_try}, 21 {"try", global_try},
12 {"protect", global_protect}, 22 {"protect", global_protect},