source:
CIVL/examples/contracts/with.cvl@
cecce94
| Last change on this file since cecce94 was 13b3e46, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 307 bytes | |
| Line | |
|---|---|
| 1 | #include<collate.cvh> |
| 2 | |
| 3 | $gcollator gcollator=gcollator_create($here, 1); |
| 4 | $collator collator=collator_create(gcollator, $here, 0); |
| 5 | |
| 6 | int main(){ |
| 7 | $collate_state cs=$collate_snapshot(collator); |
| 8 | |
| 9 | $with(cs){ |
| 10 | $assert($true); |
| 11 | } |
| 12 | $collate_unsnapshot(collator); |
| 13 | $free(collator); |
| 14 | $free(gcollator); |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
