mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 02:10:53 +00:00
test for constants
This commit is contained in:
parent
2a7e7046d9
commit
dd995a8ee2
1 changed files with 15 additions and 0 deletions
15
data/consts.qc
Normal file
15
data/consts.qc
Normal file
|
@ -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");
|
||||
};
|
Loading…
Reference in a new issue