1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-12-26 12:16:13 +00:00
sys-con/source/ControllerLib/Result.h
2020-01-12 05:01:44 +03:00

14 lines
326 B
C++

#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