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