Sha256: 48867990a4e1f7ab5a45f024c980ce1cce25b57a66193c9ba9cddf1f55db508d
Contents?: true
Size: 592 Bytes
Versions: 15
Compression:
Stored size: 592 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 RUCY_DEF_ALLOC(alloc, klass) { Beeps::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
15 entries across 15 versions & 1 rubygems