|
cf4ocl (C Framework for OpenCL)
v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
|
Useful definitions used internally by cf4ocl. More...
Go to the source code of this file.
Macros | |
| #define | ccl_if_err_create_goto(err, quark, error_condition, error_code, label, msg,...) |
If error is detected (error_code != no_error_code), create an error object (CCLErr) and go to the specified label. More... | |
| #define | ccl_if_err_goto(err, label) |
If error is detected in err object (err != NULL), go to the specified label. More... | |
| #define | ccl_if_err_propagate_goto(err_dest, err_src, label) |
| Same as ccl_if_err_goto(), but rethrows error in a source CCLErr object to a new destination CCLErr object. More... | |
Useful definitions used internally by cf4ocl.
This header is not part of the public API.
Definition in file _ccl_defs.h.
| #define ccl_if_err_create_goto | ( | err, | |
| quark, | |||
| error_condition, | |||
| error_code, | |||
| label, | |||
| msg, | |||
| ... | |||
| ) |
If error is detected (error_code != no_error_code), create an error object (CCLErr) and go to the specified label.
| [out] | err | CCLErr* object. |
| [in] | quark | Quark indicating the error domain. |
| [in] | error_condition | Must result to true in order to create error. |
| [in] | error_code | Error code to set. |
| [in] | label | Label to goto if error is detected. |
| [in] | msg | Error message in case of error. |
| [in] | ... | Extra parameters for error message. |
Definition at line 91 of file _ccl_defs.h.
| #define ccl_if_err_goto | ( | err, | |
| label | |||
| ) |
If error is detected in err object (err != NULL), go to the specified label.
| [in] | err | CCLErr* object. |
| [in] | label | Label to goto if error is detected. |
Definition at line 106 of file _ccl_defs.h.
| #define ccl_if_err_propagate_goto | ( | err_dest, | |
| err_src, | |||
| label | |||
| ) |
Same as ccl_if_err_goto(), but rethrows error in a source CCLErr object to a new destination CCLErr object.
| [out] | err_dest | Destination CCLErr** object. |
| [in] | err_src | Source CCLErr* object. |
| [in] | label | Label to goto if error is detected. |
Definition at line 120 of file _ccl_defs.h.