]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
testcase for print(ftos(pawn.mema)) slightly changed, now not using a temporary location
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 11 Aug 2012 16:09:45 +0000 (18:09 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 11 Aug 2012 16:09:45 +0000 (18:09 +0200)
test/ast-test.c

index 7a80b91eaa579e71c8165348fbb7c32f94025be0..2fb587ed71eecbc97f7c73c0b7b64d13ded741e5 100644 (file)
@@ -100,11 +100,19 @@ FUNCTION(main, TYPE_VOID);
     STATE(ASSIGN(STOREP_F, ENTFIELD(pawn, mema), f5));
     CALL(ftos)
     CALLPARAM(ENTFIELD(pawn, mema))
+#if 0
     ENDCALLWITH(output, STATE(ASSIGN(STORE_F, vi, output)));
 
     CALL(print)
     CALLPARAM(vi)
     ENDCALL();
+#else
+    ENDCALLWITH(output,
+        CALL(print)
+        CALLPARAM(output)
+        ENDCALL();
+    );
+#endif
 
 ENDFUNCTION(main);