mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-13 19:22:58 +00:00
Merge pull request #137 from marcpayne/lua53-compile-fix
Fix compile error with Lua 5.3
This commit is contained in:
commit
b3c95959bc
@ -171,6 +171,14 @@ namespace lua {
|
||||
return nresults;
|
||||
}
|
||||
|
||||
// Overloaded for Lua 5.3+ as lua_gettable and others return an int
|
||||
template<int (*misc)(lua_State *, int), int nresults>
|
||||
int safe_misc_trampoline(lua_State *l)
|
||||
{
|
||||
misc(l, 1);
|
||||
return nresults;
|
||||
}
|
||||
|
||||
int safe_next_trampoline(lua_State *l)
|
||||
{
|
||||
int r = lua_next(l, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user