1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Move last remnants of Lua 5.0 "arg' table.

This commit is contained in:
batrick
2012-06-06 22:08:01 +00:00
parent 721ac80024
commit ceaa65a0f4
8 changed files with 13 additions and 13 deletions

View File

@@ -32,18 +32,18 @@ _ENV = stdnse.module("json", stdnse.seeall)
--Some local shortcuts
local function dbg(str,...)
stdnse.print_debug("Json:"..str, table.unpack(arg))
stdnse.print_debug("Json:"..str, ...)
end
local function d4(str,...)
if nmap.debugging() > 3 then dbg(str,table.unpack(arg)) end
if nmap.debugging() > 3 then dbg(str, ...) end
end
local function d3(str,...)
if nmap.debugging() > 2 then dbg(str,table.unpack(arg)) end
if nmap.debugging() > 2 then dbg(str, ...) end
end
--local dbg =stdnse.print_debug
local function dbg_err(str,...)
stdnse.print_debug("json-ERR:"..str, table.unpack(arg))
stdnse.print_debug("json-ERR:"..str, ...)
end
-- Javascript null representation, see explanation above