// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer array C_xs endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function C_getX takes integer i returns integer return C_xs[i] endfunction function C_setX takes integer i, integer x returns nothing set C_xs[i] = x endfunction function init_test takes nothing returns nothing call C_setX(7, 4) if C_getX(7) == 4 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction