]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - data/test.qs
let's be less insane with function naming and prepare parsing for control structures
[xonotic/gmqcc.git] / data / test.qs
index b26b4efb9d10036173548146395b1240c4ef4220..6ebdf2a32a24360f98c68b7b82130e93e285570e 100644 (file)
@@ -82,4 +82,22 @@ FUNCTION: pow,            $97
 FUNCTION: findfloat,      $98
 FUNCTION: checkextension, $99
 
-; todo support other crap
+FUNCTION: test     #0
+       FLOAT: x, 100
+       FLOAT: y, 200
+
+       FLOAT: r_mul
+       FLOAT: r_div
+       FLOAT: r_add
+       FLOAT: r_sub
+
+       MUL_V x,y,r_mul
+       DIV_V x,y,r_div
+       ADD_V x,y,r_add
+       SUV_V x,y,r_sub
+
+       STORE_V r_mul
+       CALL0   dprint
+
+       STORE_V
+END