25 lines
425 B
C++
25 lines
425 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "status/Defs.h"
|
|
|
|
#include <cstddef>
|
|
|
|
namespace sc {
|
|
|
|
struct SCAPI StatusCode {
|
|
int code;
|
|
const char* message;
|
|
};
|
|
|
|
inline bool operator==(const StatusCode& lhs, const StatusCode& rhs) {
|
|
return (lhs.code == rhs.code);
|
|
}
|
|
|
|
inline bool operator!=(const StatusCode& lhs, const StatusCode& rhs) {
|
|
return !(lhs == rhs);
|
|
}
|
|
|
|
} // namespace sc
|