1
0
mirror of https://github.com/cathery/sys-con.git synced 2025-01-27 21:35:21 +00:00

14 lines
326 B
C
Raw Normal View History

2019-11-13 14:16:13 +03: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