1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-19 23:10:35 +00:00
sys-con/ControllerUSB/include/Status.h
2019-10-31 21:00:42 +03:00

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)