模块:Deep2 ExpFunc

来自希服维基

可在模块:Deep2 ExpFunc/doc创建此模块的帮助文档

local p = {}
function p.test()
    -- See if there's a limit we can hit, or if calling too many times causes issues
    local ok, err = pcall(function()
        for i = 1, 100 do
            mw.incrementExpensiveFunctionCount()
        end
    end)
    return "100x_inc=" .. tostring(ok) .. ":" .. tostring(err)
end
return p