I tried to make a varargs function
But the unpack() line merely threw an error about arg being nil. Perhaps I'm not following the Lua manual correctly. Am I missing something?
function debug_message(...)
if GetVariable("Debug") then
Note(unpack(arg))
end
endBut the unpack() line merely threw an error about arg being nil. Perhaps I'm not following the Lua manual correctly. Am I missing something?