#if LUA_VERSION_NUM < 502
return lua_resume (L, narg);
#else
+ #if LUA_VERSION_NUM >= 504
+ return lua_resume (L, from, nargs, NULL);
+ #else
return lua_resume (L, NULL, narg);
+ #endif
#endif
}
lua_rawgeti (L, LUA_REGISTRYINDEX, function_call);
#if LUA_VERSION_NUM < 502
lua_resume (L, 0);
+#elif LUA_VERSION_NUM >= 504
+ lua_resume (L, NULL, 0, NULL);
#else
lua_resume (L, NULL, 0);
#endif
lua_rawgeti (ent->lua_state, LUA_REGISTRYINDEX, function_call);
#if LUA_VERSION_NUM < 502
lua_resume (ent->lua_state, 0);
+#elif LUA_VERSION_NUM >= 504
+ lua_resume (ent->lua_state, NULL, 0, NULL);
#else
lua_resume (ent->lua_state, NULL, 0);
#endif
lua_rawgeti (ent->lua_state, LUA_REGISTRYINDEX, function_call);
#if LUA_VERSION_NUM < 502
lua_resume (ent->lua_state, 0);
+#elif LUA_VERSION_NUM >= 504
+ lua_resume (ent->lua_state, NULL, 0, NULL);
#else
lua_resume (ent->lua_state, NULL, 0);
#endif