mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-22 11:15:15 +00:00
25 lines
271 B
C
25 lines
271 B
C
|
#pragma once
|
||
|
|
||
|
#include "types.h"
|
||
|
|
||
|
namespace nn {
|
||
|
|
||
|
struct Result
|
||
|
{
|
||
|
Result(u32 value = 0) : value(value) { }
|
||
|
|
||
|
inline bool isSuccess()
|
||
|
{
|
||
|
return value == 0;
|
||
|
}
|
||
|
|
||
|
inline bool isFailure()
|
||
|
{
|
||
|
return !isSuccess();
|
||
|
}
|
||
|
|
||
|
u32 value;
|
||
|
};
|
||
|
|
||
|
}
|