diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-25 15:58:45 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-02-25 15:58:45 -0700 |
commit | 395729d4314dfeda2a095760cf2de042af7581f8 (patch) | |
tree | 833bd9f311d4e746ffa6848a66145af7e69b949c | |
parent | 2bf6730fd559e06727903eec77e52b29637c2af1 (diff) | |
download | luasocket-395729d4314dfeda2a095760cf2de042af7581f8.tar.gz luasocket-395729d4314dfeda2a095760cf2de042af7581f8.tar.bz2 luasocket-395729d4314dfeda2a095760cf2de042af7581f8.zip |
except.c: use LUASOCKET_PRIVATE
-rw-r--r-- | src/except.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/except.c b/src/except.c index 60b5005..dab70e7 100644 --- a/src/except.c +++ b/src/except.c | |||
@@ -2,6 +2,8 @@ | |||
2 | * Simple exception support | 2 | * Simple exception support |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include "luasocket.h" | ||
6 | |||
5 | #include <stdio.h> | 7 | #include <stdio.h> |
6 | 8 | ||
7 | #include "lua.h" | 9 | #include "lua.h" |
@@ -124,7 +126,7 @@ static int global_protect(lua_State *L) { | |||
124 | /*-------------------------------------------------------------------------*\ | 126 | /*-------------------------------------------------------------------------*\ |
125 | * Init module | 127 | * Init module |
126 | \*-------------------------------------------------------------------------*/ | 128 | \*-------------------------------------------------------------------------*/ |
127 | int except_open(lua_State *L) { | 129 | LUASOCKET_PRIVATE int except_open(lua_State *L) { |
128 | lua_newtable(L); /* metatable for wrapped exceptions */ | 130 | lua_newtable(L); /* metatable for wrapped exceptions */ |
129 | lua_pushboolean(L, 0); | 131 | lua_pushboolean(L, 0); |
130 | lua_setfield(L, -2, "__metatable"); | 132 | lua_setfield(L, -2, "__metatable"); |