|
ADTF
|
#include <a_util/preprocessor/current_function.h>#include <a_util/result/result_type.h>#include <a_util/strings/strings_format.h>Go to the source code of this file.
Macros | |
| #define | ERROR_DESCRIPTION(_errcode, ...) |
| #define | RETURN_ERROR_DESCRIPTION(_errcode, ...) |
Public API for result macros
Copyright 2025 Digitalwerk GmbH. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
| #define ERROR_DESCRIPTION | ( | _errcode, | |
| ... ) |
Return an a_util::result::Result object with detailed error information
The resolved macro instanciates and returns the result object with the error description containing line, file and function name this macro is evaluated from as well as the printf()-like values from the second parameter.
| [in] | _errcode | The error code to distribute with the result object. |
| [in] | ... | printf()-like arguments creating the error message. |
| #define RETURN_ERROR_DESCRIPTION | ( | _errcode, | |
| ... ) |
Return an a_util::result::Result object with detailed error information
The resolved macro instanciates and returns the result object with the error description containing line, file and function name this macro is evaluated from as well as the printf()-like values from the second parameter.
| [in] | _errcode | The error code to distribute with the result object. |
| [in] | ... | printf()-like arguments creating the error message. |