diff options
author | kdx <kikoodx@paranoici.org> | 2023-06-11 03:41:08 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-06-11 03:41:08 +0200 |
commit | 0fc731ad0f750e944513b77abfa0a8938667a31c (patch) | |
tree | 3ad25676d825fab54947ce3eec45b2d5090db46f /samples | |
parent | 617d9d0d7344c8079a1f028ce1288cc589223366 (diff) | |
download | golem-0fc731ad0f750e944513b77abfa0a8938667a31c.tar.gz |
bad define implementation
Diffstat (limited to 'samples')
-rw-r--r-- | samples/helloworld.golem | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/helloworld.golem b/samples/helloworld.golem index 9ec0086..473331f 100644 --- a/samples/helloworld.golem +++ b/samples/helloworld.golem @@ -1,5 +1,7 @@ global str[32]; +define iterations = 9; + main() { local i; @@ -9,7 +11,7 @@ main() { i = 0; loop { i = i + 1; - if (i > 9) + if (i > iterations) break; print(str); uprint(str); |