Sha256: 7af619c5fcf167bc6baa5d39ce3d64736f00ab2545c29845bc48f46440a31447

Contents?: true

Size: 645 Bytes

Versions: 6

Compression:

Stored size: 645 Bytes

Contents

#include "reflex/ruby/exception.h"


#include "defs.h"


static Class cReflexError;
static Class cLayoutError;
static Class cPhysicsError;

void
Init_reflex_exception ()
{
	Module mReflex = define_module("Reflex");

	cReflexError  = mReflex.define_class("ReflexError", rb_eStandardError);
	cLayoutError  = mReflex.define_class("LayoutError", cReflexError);
	cPhysicsError = mReflex.define_class("PhysicsError", cReflexError);
}


namespace Reflex
{


	Class
	reflex_error_class ()
	{
		return cReflexError;
	}

	Class
	layout_error_class ()
	{
		return cLayoutError;
	}

	Class
	physics_error_class ()
	{
		return cPhysicsError;
	}


}// Reflex

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
reflexion-0.3.3 ext/reflex/exception.cpp
reflexion-0.3.2 ext/reflex/exception.cpp
reflexion-0.3.1 ext/reflex/exception.cpp
reflexion-0.3 ext/reflex/exception.cpp
reflexion-0.2.1 ext/reflex/exception.cpp
reflexion-0.2 ext/reflex/exception.cpp