1. spencercw
  2. gb_emulator

Source

gb_emulator / gb_emulator / include / gb_emulator / glew_error.h

/*  Copyright Š 2012 Chris Spencer <spencercw@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

#ifndef GLEW_ERROR_H_2F27CA40_17C1_11E2_969F_0002A5D5C51B
#define GLEW_ERROR_H_2F27CA40_17C1_11E2_969F_0002A5D5C51B

#include <system_error>

//! Error category for GLEW errors.
class glew_error_category:
	public std::error_category
{
public:
	//! Returns the name of the category.
	const char * name() const;

	//! Returns an error message for the given error code.
	std::string message(int ev) const;
};

//! Returns an instance of glew_error_category.
const std::error_category & glew_category();

#endif