Sha256: b52725c9f0487b220dd0d8c45faafe7fa34f8285c3981ed962834bb976e2114d
Contents?: true
Size: 838 Bytes
Versions: 3
Compression:
Stored size: 838 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::FileIn) #define THIS to<Beeps::FileIn*>(self) #define CHECK RUCY_CHECK_OBJECT(Beeps::FileIn, self) static RUCY_DEF_ALLOC(alloc, klass) { return new_type<Beeps::FileIn>(klass); } RUCY_END static RUCY_DEF1(initialize, path) { RUCY_CHECK_OBJ(Beeps::FileIn, self); *THIS = Beeps::FileIn(to<const char*>(path)); return self; } RUCY_END static Class cFileIn; void Init_file_in () { Module mBeeps = define_module("Beeps"); cFileIn = mBeeps.define_class("FileIn", Beeps::processor_class()); cFileIn.define_alloc_func(alloc); cFileIn.define_private_method("initialize", initialize); } namespace Beeps { Class file_in_class () { return cFileIn; } }// Beeps
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
beeps-0.1.12 | ext/beeps/file_in.cpp |
beeps-0.1.11 | ext/beeps/file_in.cpp |
beeps-0.1.10 | ext/beeps/file_in.cpp |