* Fixed generators to better account for the lack of return value of clSVMFree.
* Added generated file.
{
#if defined(CL_ENABLE_LAYERS)
if (khrFirstLayer)
- return khrFirstLayer->dispatch.clSVMFree(
+ {
+ khrFirstLayer->dispatch.clSVMFree(
context,
svm_pointer);
+ return;
+ }
#endif // defined(CL_ENABLE_LAYERS)
if (context == NULL) return;
context->dispatch->clSVMFree(
%if disp == 0:
#if defined(CL_ENABLE_LAYERS)
if (khrFirstLayer)
+% if api.Name == "clSVMFree":
+ {
+ khrFirstLayer->dispatch.${api.Name}(
+% else:
return khrFirstLayer->dispatch.${api.Name}(
+% endif
%for i, param in enumerate(api.Params):
% if i < len(api.Params)-1:
${param.Name},
${param.Name});
% endif
%endfor
+% if api.Name == "clSVMFree":
+ return;
+ }
+% endif
#endif // defined(CL_ENABLE_LAYERS)
%endif
%if api.RetType in apihandles or api.RetType == "void*":
%endfor
{
printf("${api.Name}\n");
+% if api.Name == "clSVMFree":
+tdispatch->${api.Name}(
+% else:
return tdispatch->${api.Name}(
+% endif
%for i, param in enumerate(api.Params):
% if i < len(api.Params)-1:
${param.Name},
void* svm_pointer) CL_API_SUFFIX__VERSION_2_0
{
printf("clSVMFree\n");
-return tdispatch->clSVMFree(
+tdispatch->clSVMFree(
context,
svm_pointer);
}