diff options
Diffstat (limited to 'src/except.c')
-rw-r--r-- | src/except.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/except.c b/src/except.c index 1d1ade0..002e701 100644 --- a/src/except.c +++ b/src/except.c | |||
@@ -92,6 +92,10 @@ static int global_protect(lua_State *L) { | |||
92 | * Init module | 92 | * Init module |
93 | \*-------------------------------------------------------------------------*/ | 93 | \*-------------------------------------------------------------------------*/ |
94 | int except_open(lua_State *L) { | 94 | int except_open(lua_State *L) { |
95 | #if LUA_VERSION_NUM > 501 && !defined(LUA_COMPAT_MODULE) | ||
96 | luaL_setfuncs(L, func, 0); | ||
97 | #else | ||
95 | luaL_openlib(L, NULL, func, 0); | 98 | luaL_openlib(L, NULL, func, 0); |
99 | #endif | ||
96 | return 0; | 100 | return 0; |
97 | } | 101 | } |