]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/accumulate.qc
ast_expression now derives from ast_node
[xonotic/gmqcc.git] / tests / accumulate.qc
1 #define ACCUMULATE_FUNCTION(FUNC) \
2     [[accumulate]] void FUNC ()
3
4 ACCUMULATE_FUNCTION(foo) {
5     print("hello ");
6 }
7
8 ACCUMULATE_FUNCTION(foo) {
9     print("accumulation ");
10 }
11
12 ACCUMULATE_FUNCTION(foo) {
13     print("world\n");
14 }
15
16 void main() {
17     foo();
18 }