// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1367
globals
integer test_x=0
code ref_function_bar=null
endglobals
native do takes code c returns nothing
function bar takes nothing returns integer
	if test_x > 0 then
		call do(ref_function_bar)
		call bar()
		set test_x = test_x - 1
		return 1
	else
		return 2
	endif
endfunction

function initGlobals takes nothing returns nothing
	set ref_function_bar = function bar
endfunction

function main takes nothing returns nothing
	call initGlobals()
	set test_x = 20
	call do(ref_function_bar)
endfunction

function config takes nothing returns nothing
endfunction