Commit 208d58f
Ewan Crawford
Introduce extension Macros
Implement idea from #248
to add an version macro to the extension headers so that
users can guard application code using the macro to ensure the correct
APIs are being used.
Extensions can then increment the version when they change the APIs
without breaking user code.
See
[CL_MAKE_VERSION](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#CL_MAKE_VERSION)
for how the macro version is defined.1 parent c860bb5 commit 208d58f
6 files changed
Lines changed: 418 additions & 28 deletions
File tree
- CL
- scripts
- tests
- lang_cpp
- lang_c
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | 116 | | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
918 | | - | |
919 | 917 | | |
920 | 918 | | |
921 | 919 | | |
| |||
939 | 937 | | |
940 | 938 | | |
941 | 939 | | |
942 | | - | |
943 | | - | |
944 | 940 | | |
945 | 941 | | |
946 | 942 | | |
| |||
0 commit comments