Sha256: 9eb64bf65e8ef61785a7cdc0a54cf396e993ae2388f93a4e39833ba0e4d964fe

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

#include "rays/ruby/exception.h"


#include "defs.h"


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

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

	cRaysError   = mRays.define_class("RaysError", rb_eRuntimeError);
	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

1 entries across 1 versions & 1 rubygems

Version Path
rays-0.1.29 ext/rays/exception.cpp