source:
CIVL/examples/languageFeatures/procsEqual.cvl@
82c2f5c
| Last change on this file since 82c2f5c was 138a3d3, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 253 bytes | |
| Rev | Line | |
|---|---|---|
| [138a3d3] | 1 | /* Example to demonstrate the use of system function equalsTo() that |
| 2 | * compares two process references. | |
| 3 | * | |
| 4 | */ | |
| [4fb92cb] | 5 | #include <civlc.h> |
| 6 | #include <stdio.h> | |
| 7 | ||
| 8 | void main() { | |
| 9 | $proc p = $self, q = $self; | |
| 10 | _Bool result = equalsTo(p,q); | |
| 11 | ||
| 12 | $assert(result); | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
