From: Wolfgang (Blub) Bumiller Date: Thu, 16 Aug 2012 09:34:11 +0000 (+0200) Subject: test for constants X-Git-Tag: 0.1-rc1~271 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd995a8ee2a11913cf2791faa2eedaeaeece9494;p=xonotic%2Fgmqcc.git test for constants --- diff --git a/data/consts.qc b/data/consts.qc new file mode 100644 index 0000000..ccfeca6 --- /dev/null +++ b/data/consts.qc @@ -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"); +};