mirror of
https://github.com/cathery/sys-con.git
synced 2024-09-03 13:29:12 +00:00
14 lines
326 B
C
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
|