except.c: use LUASOCKET_PRIVATE
This commit is contained in:
parent
2bf6730fd5
commit
395729d431
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
* Simple exception support
|
||||
* LuaSocket toolkit
|
||||
\*=========================================================================*/
|
||||
#include "luasocket.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
@ -124,7 +126,7 @@ static int global_protect(lua_State *L) {
|
|||
/*-------------------------------------------------------------------------*\
|
||||
* Init module
|
||||
\*-------------------------------------------------------------------------*/
|
||||
int except_open(lua_State *L) {
|
||||
LUASOCKET_PRIVATE int except_open(lua_State *L) {
|
||||
lua_newtable(L); /* metatable for wrapped exceptions */
|
||||
lua_pushboolean(L, 0);
|
||||
lua_setfield(L, -2, "__metatable");
|
||||
|
|
Loading…
Add table
Reference in a new issue