diff options
Diffstat (limited to 'src/except.c')
-rw-r--r-- | src/except.c | 10 |
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 | \*=========================================================================*/ | ||
6 | static int global_try(lua_State *L); | 15 | static int global_try(lua_State *L); |
7 | static int global_protect(lua_State *L); | 16 | static int global_protect(lua_State *L); |
8 | static int protected(lua_State *L); | 17 | static int protected(lua_State *L); |
9 | 18 | ||
19 | /* except functions */ | ||
10 | static luaL_reg func[] = { | 20 | static luaL_reg func[] = { |
11 | {"try", global_try}, | 21 | {"try", global_try}, |
12 | {"protect", global_protect}, | 22 | {"protect", global_protect}, |