// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer wurst_stack_depth=0 string array wurst_stack endglobals native println takes string s returns nothing native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function init_Test takes string w__wurst_stackPos returns nothing local integer x local integer stacktraceIndex local integer stacktraceLimit local integer stacktraceLimit_1 set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling bar in testStacktrace, line 17" set wurst_stack_depth = wurst_stack_depth + 1 - 1 set x = 1 set stacktraceLimit = 2 set wurst_stack[wurst_stack_depth] = "when calling bar in testStacktrace, line 17" set wurst_stack_depth = wurst_stack_depth + 1 set w__wurst_stackPos = "" set stacktraceIndex = wurst_stack_depth set stacktraceLimit_1 = 0 loop set stacktraceIndex = stacktraceIndex - 1 set stacktraceLimit_1 = stacktraceLimit_1 + 1 exitwhen stacktraceLimit_1 > 20 or stacktraceIndex < 0 set w__wurst_stackPos = w__wurst_stackPos + "\n " + wurst_stack[stacktraceIndex] endloop call println(w__wurst_stackPos) set wurst_stack_depth = wurst_stack_depth - 1 set stacktraceLimit_1 = stacktraceLimit set wurst_stack[wurst_stack_depth] = "when calling foo in testStacktrace, line 17" set wurst_stack_depth = wurst_stack_depth + 1 set w__wurst_stackPos = "" set stacktraceIndex = wurst_stack_depth set stacktraceLimit = 0 loop set stacktraceIndex = stacktraceIndex - 1 set stacktraceLimit = stacktraceLimit + 1 exitwhen stacktraceLimit > 20 or stacktraceIndex < 0 set w__wurst_stackPos = w__wurst_stackPos + "\n " + wurst_stack[stacktraceIndex] endloop call println(w__wurst_stackPos) set wurst_stack_depth = wurst_stack_depth - 1 if x < stacktraceLimit_1 then call testSuccess() endif set wurst_stack_depth = wurst_stack_depth - 1 endfunction function main takes nothing returns nothing call initGlobals() call init_Test("when calling init_Test in testStacktrace, line 5") endfunction function config takes nothing returns nothing endfunction