source:
CIVL/examples/languageFeatures/procsEqual.cvl@
bd85fa4
| Last change on this file since bd85fa4 was 138a3d3, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 253 bytes | |
| Line | |
|---|---|
| 1 | /* Example to demonstrate the use of system function equalsTo() that |
| 2 | * compares two process references. |
| 3 | * |
| 4 | */ |
| 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.
