Sha256: 92fe1c15646466370d0e5049289137fc982e917736f33f30dd74b72d09413ff6

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 Bytes

Contents

#include "beeps/ruby/processor.h"


#include "beeps/exception.h"
#include "defs.h"


RUCY_DEFINE_VALUE_FROM_TO(Beeps::Processor)

#define THIS  to<Beeps::Processor*>(self)

#define CHECK RUCY_CHECK_OBJECT(Beeps::Processor, self)


static
VALUE alloc(VALUE klass)
{
	Beeps::beeps_error(__FILE__, __LINE__);
}


static Class cProcessor;

void
Init_beeps_processor ()
{
	Module mBeeps = rb_define_module("Beeps");

	cProcessor = rb_define_class_under(mBeeps, "Processor", rb_cObject);
	rb_define_alloc_func(cProcessor, alloc);
}


namespace Beeps
{


	Class
	processor_class ()
	{
		return cProcessor;
	}


}// Beeps

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beeps-0.1.32 .doc/ext/beeps/processor.cpp
beeps-0.1.31 .doc/ext/beeps/processor.cpp
beeps-0.1.30 .doc/ext/beeps/processor.cpp