]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
test for constants
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 09:34:11 +0000 (11:34 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 09:34:11 +0000 (11:34 +0200)
data/consts.qc [new file with mode: 0644]

diff --git a/data/consts.qc b/data/consts.qc
new file mode 100644 (file)
index 0000000..ccfeca6
--- /dev/null
@@ -0,0 +1,15 @@
+/* this is the WIP test for the parser...
+ * constantly adding stuff here to see if things break
+ */
+void(string)        print  = #1;
+void(string,string) print2 = #1;
+void(string,string,string) print3 = #1;
+string(float)       ftos   = #2;
+
+float CONST_1 = 1;
+float CONST_2 = CONST_1 + 1;
+
+void() main = {
+    print3("CONST_1 = ", ftos(CONST_1), "\n");
+    print3("CONST_2 = ", ftos(CONST_2), "\n");
+};