func CLRetainContext(context CL_context) CL_int { return CL_int(C.clRetainContext(context.cl_context)) }
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clRetainContext.html func RetainContext(context Context) ErrorCode { return ErrorCode(C.clRetainContext(context.clContext)) }
func retainContext(c *Context) { if c.clContext != nil { C.clRetainContext(c.clContext) } }