1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-20 08:09:52 +00:00
sys-con/ControllerUSB/include/Status.h

10 lines
275 B
C
Raw Normal View History

2019-10-31 18:00:42 +00:00
#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)