Added POD serialization

This commit is contained in:
Hamish Milne 2019-08-06 17:45:06 +01:00 committed by zhupengfei
parent 6940c99ed6
commit dc04774ece
8 changed files with 68 additions and 20 deletions

View file

@ -10,6 +10,7 @@
#include "common/bit_field.h"
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "common/pod.h"
// All the constants in this file come from http://3dbrew.org/wiki/Error_codes
@ -225,6 +226,8 @@ union ResultCode {
constexpr bool IsError() const {
return is_error.ExtractValue(raw) == 1;
}
SERIALIZE_AS_POD
};
constexpr bool operator==(const ResultCode& a, const ResultCode& b) {