Sha256: 69fb381ae783dfca3998ee7e36bf7120aed20502b450290bb5a1b86f1e7e6005

Contents?: true

Size: 610 Bytes

Versions: 3

Compression:

Stored size: 610 Bytes

Contents

#include "rays/ruby/exception.h"


#include "defs.h"


static Class cRaysError;
static Class cOpenGLError;
static Class cShaderError;

void
Init_rays_exception ()
{
	Module mRays = define_module("Rays");

	cRaysError   = mRays.define_class("RaysError", rb_eStandardError);
	cOpenGLError = mRays.define_class("OpenGLError", cRaysError);
	cShaderError = mRays.define_class("ShaderError", cOpenGLError);
}


namespace Rays
{


	Class
	rays_error_class ()
	{
		return cRaysError;
	}

	Class
	opengl_error_class ()
	{
		return cOpenGLError;
	}

	Class
	shader_error_class ()
	{
		return cShaderError;
	}


}// Rays

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rays-0.3 ext/rays/exception.cpp
rays-0.2.1 ext/rays/exception.cpp
rays-0.2 ext/rays/exception.cpp