mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #25 from Nava2/fix-multisymbol-luajit51
For some reason, on luajit5.1 these needed to be inline
This commit is contained in:
commit
3534be0641
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user