source:
CIVL/mods/dev.civl.com/examples/languageFeatures/runStatement.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 173 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | |
| 3 | int main() { |
| 4 | int x = 0; |
| 5 | int y = 0; |
| 6 | |
| 7 | $run { |
| 8 | while( x < 3 ){} |
| 9 | $assert(x == 3); |
| 10 | } |
| 11 | for(int y = 0; x < 3; x++) y++; |
| 12 | return 0; |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
