source:
CIVL/examples/translation/opencl/ctx.cvl@
3b13e9c8
| Last change on this file since 3b13e9c8 was ed62ba1a, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 181 bytes | |
| Rev | Line | |
|---|---|---|
| [00dbbe9] | 1 | |
| 2 | ||
| 3 | ||
| 4 | ||
| [ed62ba1a] | 5 | typedef struct |
| 6 | { | |
| 7 | int yes; | |
| 8 | int *no; | |
| 9 | } | |
| [00dbbe9] | 10 | *cl_context; |
| 11 | ||
| 12 | ||
| 13 | void main() | |
| 14 | { | |
| [ed62ba1a] | 15 | cl_context ctx; |
| 16 | ||
| 17 | int x = 5; | |
| 18 | int *y = &x; | |
| [00dbbe9] | 19 | |
| [ed62ba1a] | 20 | ctx->yes = x; |
| 21 | //ctx->no = y; | |
| [00dbbe9] | 22 | |
| 23 | } | |
| 24 |
Note:
See TracBrowser
for help on using the repository browser.
