source:
CIVL/examples/languageFeatures/exit.cvl@
38b7d06
| Last change on this file since 38b7d06 was 65b3124, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 196 bytes | |
| Rev | Line | |
|---|---|---|
| [65b3124] | 1 | #include<civlc.h> |
| 2 | ||
| 3 | void f() { | |
| 4 | for (int i = 0; i < 10; i++) { | |
| 5 | if (i == 8) { | |
| 6 | $exit(); | |
| 7 | } | |
| 8 | $assert i < 9; | |
| 9 | } | |
| 10 | } | |
| 11 | ||
| 12 | void main() { | |
| 13 | for (int i = 0; i < 4; i++) { | |
| 14 | $spawn f(); | |
| 15 | } | |
| 16 | } |
Note:
See TracBrowser
for help on using the repository browser.
