#include "beeps/ruby/processor.h" #include #include "beeps/exception.h" #include "defs.h" using namespace Rucy; RUCY_DEFINE_VALUE_FROM_TO(Beeps::Processor) #define THIS to(self) #define CHECK RUCY_CHECK_OBJECT(Beeps::Processor, self) static VALUE alloc(VALUE klass) { beeps_error(__FILE__, __LINE__); } static Class cProcessor; void Init_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