Sha256: 1678afa437ccaffaba6316f0a85978b1038f2c7cb6f65f56a5413cf2c3a0aabc

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 Bytes

Contents

#include "beeps/ruby/processor.h"


#include <rucy.h>
#include "beeps/exception.h"
#include "defs.h"


using namespace Rucy;


RUCY_DEFINE_VALUE_FROM_TO(Beeps::Processor)

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

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


static
RUCY_DEF_ALLOC(alloc, klass)
{
	beeps_error(__FILE__, __LINE__);
}
RUCY_END


static Class cProcessor;

void
Init_processor ()
{
	Module mBeeps = define_module("Beeps");

	cProcessor = mBeeps.define_class("Processor");
	cProcessor.define_alloc_func(alloc);
}


namespace Beeps
{


	Class
	processor_class ()
	{
		return cProcessor;
	}


}// Beeps

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beeps-0.1.12 ext/beeps/processor.cpp
beeps-0.1.11 ext/beeps/processor.cpp
beeps-0.1.10 ext/beeps/processor.cpp