@@ -22246,7 +22246,7 @@ def cuGetErrorString(error not None : CUresult):
2224622246 cdef cydriver.CUresult cyerror = error.value
2224722247 cdef const char* pStr = NULL
2224822248 err = cydriver.cuGetErrorString(cyerror, &pStr)
22249- return (CUresult(err), <bytes>pStr)
22249+ return (CUresult(err), <bytes>pStr if pStr != NULL else None )
2225022250{{endif}}
2225122251
2225222252{{if 'cuGetErrorName' in found_functions}}
@@ -22279,7 +22279,7 @@ def cuGetErrorName(error not None : CUresult):
2227922279 cdef cydriver.CUresult cyerror = error.value
2228022280 cdef const char* pStr = NULL
2228122281 err = cydriver.cuGetErrorName(cyerror, &pStr)
22282- return (CUresult(err), <bytes>pStr)
22282+ return (CUresult(err), <bytes>pStr if pStr != NULL else None )
2228322283{{endif}}
2228422284
2228522285{{if 'cuInit' in found_functions}}
@@ -27132,7 +27132,7 @@ def cuKernelGetName(hfunc):
2713227132 cyhfunc = <cydriver.CUkernel><void_ptr>phfunc
2713327133 cdef const char* name = NULL
2713427134 err = cydriver.cuKernelGetName(&name, cyhfunc)
27135- return (CUresult(err), <bytes>name)
27135+ return (CUresult(err), <bytes>name if name != NULL else None )
2713627136{{endif}}
2713727137
2713827138{{if 'cuKernelGetParamInfo' in found_functions}}
@@ -38744,7 +38744,7 @@ def cuFuncGetName(hfunc):
3874438744 cyhfunc = <cydriver.CUfunction><void_ptr>phfunc
3874538745 cdef const char* name = NULL
3874638746 err = cydriver.cuFuncGetName(&name, cyhfunc)
38747- return (CUresult(err), <bytes>name)
38747+ return (CUresult(err), <bytes>name if name != NULL else None )
3874838748{{endif}}
3874938749
3875038750{{if 'cuFuncGetParamInfo' in found_functions}}
0 commit comments