// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_CRDTP_STATUS_H_ #define V8_CRDTP_STATUS_H_ #include <cassert> #include <cstddef> #include <limits> #include <string> #include "export.h" namespace v8_crdtp { // ============================================================================= // Status and Error codes // ============================================================================= enum class Error { … }; // A status value with position that can be copied. The default status // is OK. Usually, error status values should come with a valid position. struct Status { … }; template <typename T> class StatusOr { … }; } // namespace v8_crdtp #endif // V8_CRDTP_STATUS_H_