mirror of
https://github.com/cathery/sys-con.git
synced 2024-12-28 00:17:13 +00:00
10 lines
275 B
C++
10 lines
275 B
C++
#pragma once
|
|
#include <cstdint>
|
|
|
|
//Function error code status type
|
|
typedef uint32_t Status;
|
|
|
|
//Checks whether a status code indicates success
|
|
#define S_SUCCEEDED(status) ((status) == 0)
|
|
//Checks whether a status code indicates failure
|
|
#define S_FAILED(status) ((status) != 0) |