Beispiel #1
0
 public static void CheckError(this cl_status_code code)
 {
     if (HasError(code))
     {
         throw new Exception(Enum.GetName(typeof(cl_status_code), code));
     }
 }
Beispiel #2
0
 public static bool HasError(this cl_status_code code)
 => code != cl_status_code.CL_SUCCESS;