Sha256: 2637c6a204b7884ae46019febb201b1dd95df74144a5c7e5ccfc8382b2153d94

Contents?: true

Size: 614 Bytes

Versions: 17

Compression:

Stored size: 614 Bytes

Contents

#include "beeps/ruby/beeps.h"


#include "defs.h"


static
VALUE init(VALUE self)
{
	Beeps::init();
	return self;
}

static
VALUE fin(VALUE self)
{
	rb_gc_start();
	Beeps::fin();
	return self;
}

static
VALUE process_streams(VALUE self)
{
	Beeps::process_streams();
	return self;
}


static Module mBeeps;

void
Init_beeps ()
{
	mBeeps = rb_define_module("Beeps");
	mBeeps.define_singleton_method("init!", init);
	mBeeps.define_singleton_method("fin!",  fin);
	mBeeps.define_singleton_method("process_streams!", process_streams);
}


namespace Beeps
{


	Module
	beeps_module ()
	{
		return mBeeps;
	}


}// Beeps

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
beeps-0.3 .doc/ext/beeps/beeps.cpp
beeps-0.2.1 .doc/ext/beeps/beeps.cpp
beeps-0.2 .doc/ext/beeps/beeps.cpp
beeps-0.1.46 .doc/ext/beeps/beeps.cpp
beeps-0.1.45 .doc/ext/beeps/beeps.cpp
beeps-0.1.44 .doc/ext/beeps/beeps.cpp
beeps-0.1.43 .doc/ext/beeps/beeps.cpp
beeps-0.1.42 .doc/ext/beeps/beeps.cpp
beeps-0.1.41 .doc/ext/beeps/beeps.cpp
beeps-0.1.40 .doc/ext/beeps/beeps.cpp
beeps-0.1.39 .doc/ext/beeps/beeps.cpp
beeps-0.1.38 .doc/ext/beeps/beeps.cpp
beeps-0.1.37 .doc/ext/beeps/beeps.cpp
beeps-0.1.36 .doc/ext/beeps/beeps.cpp
beeps-0.1.35 .doc/ext/beeps/beeps.cpp
beeps-0.1.34 .doc/ext/beeps/beeps.cpp
beeps-0.1.33 .doc/ext/beeps/beeps.cpp