Pagkakaiba sa pagitan ng mga pagbago ng "Module:SimpleDebug"

m
Added p.addcount and message when reach 100 functions
(Bagong pahina: local p = {} p.s = '' p.tab = { oneline = true, allidx = false, } p.dec = -1 p.maxlines = { num = 100, doerror = true, } p.enabled = true p.nowiki = false...)
 
m (Added p.addcount and message when reach 100 functions)
p.nohtml = false
p.plaintext = false
p.addcount = false
 
local LinCount = 0
local vep = '  •  '
local MessRaised = '\n\nIt has been reached to '..p.maxlines.num..', you can increase this limit with "maxlines.num".'
 
local function arrow()
return ' => '
 
function p.breakline ()
ifLinCount p.s ~= ''LinCount + then1
LinCountp.s = LinCount + 1p.s..'\n\n'
if p.addcount then
p.s = p.s..'\n\n'LinCount..vep
end
p.s = p.s..'\n\n'
if (LinCount > p.maxlines.num) and p.maxlines.doerror then
p.pa = p.s..MessRaised
error (p.s,0)
end
 
local function EnabAndBl ()
if p.enabled and (LinCount < p.maxlines.num) then
if p.sLinCount ~=< ''p.maxlines.num then
if p.breaklines ~= '' ()then
p.breakline ()
end
return true
else
p.s = p.s..MessRaised
error (p.s)
return false
end
return true
else
return false
35

edit