Fix warning
This commit is contained in:
1 parent
16df893c2c
commit
4706d71639
1 file changed
+5
-6
@@ -1,6 +1,7 @@
|
|||||||
namespace DebugUtils
|
#if DEBUG
|
||||||
|
namespace DebugUtils
|
||||||
function PrintStackTrace(message = invalid as dynamic)
|
function PrintStackTrace(message = invalid as dynamic)
|
||||||
#if DEBUG
|
|
||||||
try
|
try
|
||||||
throw "Handled throw in DebugUtils.PrintStackTrace()"
|
throw "Handled throw in DebugUtils.PrintStackTrace()"
|
||||||
catch error
|
catch error
|
||||||
@@ -15,11 +16,9 @@ namespace DebugUtils
|
|||||||
end for
|
end for
|
||||||
PrintInABox(lines)
|
PrintInABox(lines)
|
||||||
end try
|
end try
|
||||||
#end if
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function PrintInABox(lines as object)
|
function PrintInABox(lines as object)
|
||||||
#if DEBUG
|
|
||||||
maxLen = 0
|
maxLen = 0
|
||||||
for each line in lines
|
for each line in lines
|
||||||
if line.len() > maxLen
|
if line.len() > maxLen
|
||||||
@@ -32,6 +31,6 @@ namespace DebugUtils
|
|||||||
end for
|
end for
|
||||||
out += `\n` + "╚" + string(maxLen + 2, "═") + "╝"
|
out += `\n` + "╚" + string(maxLen + 2, "═") + "╝"
|
||||||
print out
|
print out
|
||||||
#end if
|
|
||||||
end function
|
end function
|
||||||
end namespace
|
end namespace
|
||||||
|
#end if
|
||||||
Reference in new issue
Block a user