Sha256: 0db573b65571b663a3a4714a127a266381f776142b78366a01a35ab7c3f1f5b8

Contents?: true

Size: 759 Bytes

Versions: 13

Compression:

Stored size: 759 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __RAYS_EXCEPTION_H__
#define __RAYS_EXCEPTION_H__


#include <xot/exception.h>
#include <rays/defs.h>


namespace Rays
{


	class RaysError : public Xot::XotError
	{
		typedef Xot::XotError Super;
		public: RaysError (const char* str = NULL);
	};


	class OpenGLError : public RaysError
	{
		typedef RaysError Super;
		public: OpenGLError (const char* str = NULL);
	};


	namespace ErrorFunctions
	{

		using namespace Xot::ErrorFunctions;

		[[noreturn]]
		void rays_error (
			const char* file, int line, const char* format = NULL, ...);

		[[noreturn]]
		void opengl_error (
			const char* file, int line, const char* format = NULL, ...);

	}// ErrorFunctions


	using namespace ErrorFunctions;


}// Rays


#endif//EOH

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rays-0.1.28 include/rays/exception.h
rays-0.1.27 include/rays/exception.h
rays-0.1.26 include/rays/exception.h
rays-0.1.25 include/rays/exception.h
rays-0.1.24 include/rays/exception.h
rays-0.1.23 include/rays/exception.h
rays-0.1.22 include/rays/exception.h
rays-0.1.21 include/rays/exception.h
rays-0.1.20 include/rays/exception.h
rays-0.1.19 include/rays/exception.h
rays-0.1.18 include/rays/exception.h
rays-0.1.17 include/rays/exception.h
rays-0.1.16 include/rays/exception.h