15 lines
391 B
Diff
15 lines
391 B
Diff
|
--- lgi/callable.c
|
||
|
+++ lgi/callable.c
|
||
|
@@ -1233,7 +1233,10 @@ closure_callback (ffi_cif *cif, void *ret, void **args, void *closure_arg)
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
-#if LUA_VERSION_NUM >= 502
|
||
|
+#if LUA_VERSION_NUM > 503
|
||
|
+ int nres;
|
||
|
+ res = lua_resume (L, NULL, npos, &nres);
|
||
|
+#elif LUA_VERSION_NUM >= 502
|
||
|
res = lua_resume (L, NULL, npos);
|
||
|
#else
|
||
|
res = lua_resume (L, npos);
|