SuperMarioOdysseyOnline/include/nn/result.h

25 lines
271 B
C
Raw Normal View History

2022-06-16 21:33:18 +00:00
#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;
};
}