Sha256: 3141097f0055134979796ff9bab701fb0b3c39a47a550b52c295e8b95528b547

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

#include <rucy.h>
#include <rays/rays.h>
#include "defs.h"


using namespace Rucy;


static Module mRays;


namespace Rays
{


	Module
	rays_module ()
	{
		return mRays;
	}


}// Rays


static
VALUE init(VALUE self)
{
	if (!Rays::init())
		rays_error("Rays::init() failed.");

	return self;
}

static
VALUE fin(VALUE self)
{
	if (!Rays::fin())
		rays_error("Rays::fin() failed.");

	return self;
}


void
Init_rays ()
{
	mRays = rb_define_module("Rays");
	mRays.define_singleton_method("init!", init);
	mRays.define_singleton_method("fin!", fin);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rays-0.1.6 .doc/ext/rays/rays.cpp
rays-0.1.5 .doc/ext/rays/rays.cpp
rays-0.1.4 .doc/ext/rays/rays.cpp