Skip to content

Commit 846fe2a

Browse files
authoredMar 8, 2025
fix: compiling with Lua 5.4 (#26)
1 parent 41999f0 commit 846fe2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/pcall.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ namespace luabind {
4848

4949
int resume_impl(lua_State *L, int nargs, int)
5050
{
51-
#if LUA_VERSION_NUM >= 502
51+
#if LUA_VERSION_NUM >= 504
52+
int res = lua_resume(L, NULL, nargs, NULL);
53+
#elif LUA_VERSION_NUM >= 502
5254
int res = lua_resume(L, NULL, nargs);
5355
#else
5456
int res = lua_resume(L, nargs);

0 commit comments

Comments
 (0)
Please sign in to comment.