淘先锋技术网

首页 1 2 3 4 5 6 7
    function babe_tostring(...)
         local num = select("#",...)
         local args = {...}
         local outs = {}
        for i = 1, num do
            if i > 1 then
                outs[#outs+1] = "\t"
            end
            outs[#outs+1] = tostring(args[i])
        end
        return table.concat(outs)
    end
    local babe_print = print
    local babe_output = function(...)
    babe_print(...)
    if decoda_output ~= nil then
        local str = babe_tostring(...)
        decoda_output(str)
    end
  end
  print = babe_output