17 #include <pia/common/common_definitions.h> 18 #include <pia/common/common_Trace.h> 20 #if NN_PIA_ENABLE_TRACE 27 #define PIA_TRACE_RESULT(result) \ 30 PIA_TRACE(nn::pia::common::TRACE_FLAG_ALWAYS, "%s, line: %d", PIA_CODE_POSITION_FILE, PIA_CODE_POSITION_LINE); \ 31 nn::pia::common::ErrorHandler::TraceResult(result); \ 35 #else // else of NN_PIA_ENABLE_TRACE 37 #define PIA_TRACE_RESULT(result) (void)(result) 39 #endif // end of NN_PIA_ENABLE_TRACE 70 static void TraceResult(u64 traceFlags,
const nn::Result& result);
77 static bool IsPiaError(
const nn::Result& result);
ModuleType
Enumerates modules in the Pia library. You get one of these values when you pass a nn::Result value t...
Definition: result.h:54
This class is used for error handling.
Definition: common_ErrorHandler.h:55
static ModuleType GetModuleTypeFromResult(const nn::Result &result)
Gets the Pia module in which the error occurred.
static bool IsPiaError(const nn::Result &result)
Determines whether there is an error in the Pia module.
static void TraceResult(const nn::Result &result)
Displays detailed information for nn::Result values.