1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-05 17:26:28 +00:00
sys-con/ControllerUSB/include/Result.h

14 lines
326 B
C
Raw Normal View History

2019-11-13 11:16:13 +00:00
#pragma once
#include <cstdint>
//Function error code Result type
typedef uint32_t Result;
//Checks whether a Result code indicates success
#ifndef R_SUCCEEDED
#define R_SUCCEEDED(Result) ((Result) == 0)
#endif
//Checks whether a Result code indicates failure
#ifndef R_FAILED
#define R_FAILED(Result) ((Result) != 0)
#endif