func CLRetainMemObject(memobj CL_mem) CL_int { return CL_int(C.clRetainMemObject(memobj.cl_mem)) }
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clRetainMemObject.html func RetainMemObject(mem Mem) ErrorCode { return ErrorCode(C.clRetainMemObject(mem)) }
func retainMemObject(b *MemObject) { if b.clMem != nil { C.clRetainMemObject(b.clMem) } }