From b36178090024b7ba8db4456a8d6821c569bf689d Mon Sep 17 00:00:00 2001 From: Kevin Brightwell Date: Wed, 2 Mar 2016 01:01:29 -0500 Subject: [PATCH] For some reason, on luajit5.1 these needed to be inline --- sol/compatibility/5.1.0.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sol/compatibility/5.1.0.h b/sol/compatibility/5.1.0.h index 329d4c45..4afc1418 100644 --- a/sol/compatibility/5.1.0.h +++ b/sol/compatibility/5.1.0.h @@ -84,11 +84,11 @@ typedef struct luaL_Buffer_52 { #define lua_rawlen(L, i) lua_objlen(L, i) -void lua_callk(lua_State *L, int nargs, int nresults, lua_KContext, lua_KFunction) { +inline void lua_callk(lua_State *L, int nargs, int nresults, lua_KContext, lua_KFunction) { // should probably warn the user of Lua 5.1 that continuation isn't supported... lua_call(L, nargs, nresults); } -int lua_pcallk(lua_State *L, int nargs, int nresults, int errfunc, lua_KContext, lua_KFunction) { +inline int lua_pcallk(lua_State *L, int nargs, int nresults, int errfunc, lua_KContext, lua_KFunction) { // should probably warn the user of Lua 5.1 that continuation isn't supported... return lua_pcall(L, nargs, nresults, errfunc); }