Sha256: 42a0c3b9fd5688b41adfb0cc2d20aa07e2b43014d899e5902c1f748fc21ad97f

Contents?: true

Size: 640 Bytes

Versions: 19

Compression:

Stored size: 640 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 = rb_define_module("Rays");

	cRaysError = rb_define_class_under(mRays, "RaysError", rb_eRuntimeError);
	cOpenGLError = rb_define_class_under(mRays, "OpenGLError", cRaysError);
	cShaderError = rb_define_class_under(mRays, "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

19 entries across 19 versions & 1 rubygems

Version Path
rays-0.1.49 .doc/ext/rays/exception.cpp
rays-0.1.48 .doc/ext/rays/exception.cpp
rays-0.1.47 .doc/ext/rays/exception.cpp
rays-0.1.46 .doc/ext/rays/exception.cpp
rays-0.1.45 .doc/ext/rays/exception.cpp
rays-0.1.44 .doc/ext/rays/exception.cpp
rays-0.1.43 .doc/ext/rays/exception.cpp
rays-0.1.42 .doc/ext/rays/exception.cpp
rays-0.1.40 .doc/ext/rays/exception.cpp
rays-0.1.39 .doc/ext/rays/exception.cpp
rays-0.1.38 .doc/ext/rays/exception.cpp
rays-0.1.37 .doc/ext/rays/exception.cpp
rays-0.1.36 .doc/ext/rays/exception.cpp
rays-0.1.35 .doc/ext/rays/exception.cpp
rays-0.1.34 .doc/ext/rays/exception.cpp
rays-0.1.33 .doc/ext/rays/exception.cpp
rays-0.1.32 .doc/ext/rays/exception.cpp
rays-0.1.31 .doc/ext/rays/exception.cpp
rays-0.1.30 .doc/ext/rays/exception.cpp