Project

General

Profile

Actions

Support Request #7843

closed

RETURN_ERROR using _code instead of _error for assert

Added by hidden almost 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
EF
Requester's Priority:
Normal
Support Level:
3rd Level
Resolution:
Product Issue Opened
Affected Products:
Platform:
Topic:
ADTF::Util
FAQ Links:

Description

Supportanfrage

.\pkg\a_utils\include\a_utils\base\error.h
Zeile 37ff
Die Bezeichner _error und _code sind unterschiedlich. Ich glaub, dass ist so nicht gewollt...

#if (__UCOM_ASSERT_WHEN_LOGGING_ERRORS == 1)
/// Assert on specific error code, which requires the calling function's return type to be tResult
#define RETURN_ERROR(_error)           assert(IS_OK(_code)); return (_code)
/// Same as RETURN_ERROR(_error) using a printf like parameter list for detailed error description
#define RETURN_ERROR_DESC(_error, ...) assert(IS_OK(_code)); return DETAILED_RESULT(_code,      \
__VA_ARGS__)

Lösung

Danke für den Hinweis, hab ein Produktticket angelegt -> ACORE-10073

Ist zum Glück halb so wild aktuell, denn der Code wird nicht angesprungen und der Non-assert Fall darunter ist korrekt.

Actions

Also available in: Atom PDF