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

Version Path
beeps-0.1.29 .doc/ext/beeps/file_in.cpp
beeps-0.1.28 .doc/ext/beeps/file_in.cpp
beeps-0.1.27 .doc/ext/beeps/file_in.cpp
beeps-0.1.26 .doc/ext/beeps/file_in.cpp
beeps-0.1.25 .doc/ext/beeps/file_in.cpp
beeps-0.1.24 .doc/ext/beeps/file_in.cpp
beeps-0.1.23 .doc/ext/beeps/file_in.cpp
beeps-0.1.22 .doc/ext/beeps/file_in.cpp
beeps-0.1.21 .doc/ext/beeps/file_in.cpp
beeps-0.1.20 .doc/ext/beeps/file_in.cpp
beeps-0.1.18 .doc/ext/beeps/file_in.cpp
beeps-0.1.16 .doc/ext/beeps/file_in.cpp
beeps-0.1.15 .doc/ext/beeps/file_in.cpp
beeps-0.1.14 .doc/ext/beeps/file_in.cpp
beeps-0.1.13 .doc/ext/beeps/file_in.cpp