Sha256: b3e5018149a0253e6467822c87723d24fa7b2c8a782838b863dd68104f51ef66

Contents?: true

Size: 767 Bytes

Versions: 15

Compression:

Stored size: 767 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
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

15 entries across 15 versions & 1 rubygems

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