aboutsummaryrefslogtreecommitdiff
path: root/src/except.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2019-02-26 00:06:02 -0300
committerGitHub <noreply@github.com>2019-02-26 00:06:02 -0300
commitc0fba03e4fe2a27a3471fa5af290be931f957002 (patch)
tree7a5f40572dd9ad9a6b56749cc256f7b658946873 /src/except.c
parent9b3f7a430454dc9568dfb063fbc324b29c5134d7 (diff)
parente2e43d62fa925e7e22385505ed0c635255c77c0a (diff)
downloadluasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.gz
luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.bz2
luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.zip
Merge pull request #270 from ewestbrook/functionvisibility
Tag functions explicitly for shared library visibility
Diffstat (limited to 'src/except.c')
-rw-r--r--src/except.c4
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\*-------------------------------------------------------------------------*/
127int except_open(lua_State *L) { 129LUASOCKET_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");