// // Copyright 2014 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Error.inc: Inline definitions of egl::Error and gl::Error classes which encapsulate API errors // and optional error messages. #include "common/angleutils.h" #include <cstdarg> namespace egl { Error::Error(EGLint errorCode) : … { … } Error::Error(const Error &other) : … { … } Error::Error(Error &&other) : … { … } Error &Error::operator=(const Error &other) { … } Error &Error::operator=(Error &&other) { … } EGLint Error::getCode() const { … } EGLint Error::getID() const { … } bool Error::isError() const { … } void Error::setCode(EGLint code) { … } // Static Error Error::NoError() { … } }