// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals real vec_op_mult_return_x=0. real vec_op_mult_return_y=0. real vec_op_mult_return_z=0. endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function vec_op_mult takes real this_x, real this_y, real this_z, real r returns real set vec_op_mult_return_x = this_x * r set vec_op_mult_return_y = this_y * r set vec_op_mult_return_z = this_z * r return vec_op_mult_return_x endfunction function init_test takes nothing returns nothing local real tuple_temp = 1. local real tuple_temp_1 = 2. local real tuple_temp_2 = 3. local real v_x = tuple_temp local real v_y = tuple_temp_1 local real v_z = tuple_temp_2 local real tuple_temp_3 = vec_op_mult(v_x, v_y, v_z, 2.) local real tuple_temp_4 = vec_op_mult_return_y local real tuple_temp_5 = vec_op_mult_return_z set v_x = tuple_temp_3 set v_y = tuple_temp_4 set v_z = tuple_temp_5 if v_x == 2. and v_y == 4. and v_z == 6. then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction