Sha256: ba29a266ea32fcb1ef00d38d560b4946dec8c85927db3bb80ef2ae33d089efbc
Contents?: true
Size: 790 Bytes
Versions: 15
Compression:
Stored size: 790 Bytes
Contents
#include "beeps/ruby/processor.h" #include "defs.h" RUCY_DEFINE_VALUE_FROM_TO(Beeps::FileIn) #define THIS to<Beeps::FileIn*>(self) #define CHECK RUCY_CHECK_OBJECT(Beeps::FileIn, self) static VALUE alloc(VALUE klass) { return new_type<Beeps::FileIn>(klass); } static VALUE initialize(VALUE self, VALUE path) { RUCY_CHECK_OBJ(Beeps::FileIn, self); *THIS = Beeps::FileIn(to<const char*>(path)); return self; } static Class cFileIn; void Init_file_in () { Module mBeeps = rb_define_module("Beeps"); cFileIn = mBeeps.define_class("FileIn", Beeps::processor_class()); rb_define_alloc_func(cFileIn, alloc); rb_define_private_method(cFileIn, "initialize", RUBY_METHOD_FUNC(initialize), 1); } namespace Beeps { Class file_in_class () { return cFileIn; } }// Beeps
Version data entries
15 entries across 15 versions & 1 rubygems