source:
CIVL/mods/dev.civl.com/examples/library/funcPointer.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 159 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | #include <pointer.cvh> |
| 3 | |
| 4 | void test(void f(void*), void* x){ |
| 5 | f(x); |
| 6 | } |
| 7 | |
| 8 | int main(){ |
| 9 | int x; |
| 10 | |
| 11 | test($set_default, &x); |
| 12 | $assert(x==0); |
| 13 | } |
| 14 |
Note:
See TracBrowser
for help on using the repository browser.
