Skip to content

Commit

Permalink
Remove pre-5.2 Lua varargs syntax (fixes raboof#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof committed May 7, 2019
1 parent d40fbdb commit b2b1755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ioncore/ioncore_menudb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ end
-- Define context menu for context \var{ctx}, \var{tab} being a table
-- of menu entries.
function ioncore.defctxmenu(ctx, ...)
local arg = {...}
local tab, add
if #arg>1 and type(arg[1])=="string" then
tab=arg[2]
Expand Down
1 change: 1 addition & 0 deletions ioncore/ioncore_winprops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ local ioncore=_G.ioncore
local winprops={}

local function ifnil(...)
local arg = {...}
local n=#arg
local function nxt(_, i)
local j=i+1
Expand Down

0 comments on commit b2b1755

Please sign in to comment.