Fix warning

This commit is contained in:
Brahim Hadriche committed 2026-04-23 14:31:38 -04:00
1 parent 16df893c2c
commit 4706d71639
1 file changed
+9 -10
+9 -10
View File
@@ -1,6 +1,7 @@
namespace DebugUtils
function PrintStackTrace(message = invalid as dynamic)
#if DEBUG
#if DEBUG
namespace DebugUtils
function PrintStackTrace(message = invalid as dynamic)
try
throw "Handled throw in DebugUtils.PrintStackTrace()"
catch error
@@ -15,11 +16,9 @@ namespace DebugUtils
end for
PrintInABox(lines)
end try
#end if
end function
end function
function PrintInABox(lines as object)
#if DEBUG
function PrintInABox(lines as object)
maxLen = 0
for each line in lines
if line.len() > maxLen
@@ -32,6 +31,6 @@ namespace DebugUtils
end for
out += `\n` + "╚" + string(maxLen + 2, "═") + "╝"
print out
#end if
end function
end namespace
end function
end namespace
#end if