Sha256: cedbea93cf1dfb727bae5a903d3e68402a245546f8dfb00bee2d26d4c2fb76d2

Contents?: true

Size: 617 Bytes

Versions: 17

Compression:

Stored size: 617 Bytes

Contents

#include "beeps/ruby/beeps.h"


#include "defs.h"


static
RUCY_DEF0(init)
{
	Beeps::init();
	return self;
}
RUCY_END

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

static
RUCY_DEF0(process_streams)
{
	Beeps::process_streams();
	return self;
}
RUCY_END


static Module mBeeps;

void
Init_beeps ()
{
	mBeeps = 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 ext/beeps/beeps.cpp
beeps-0.2.1 ext/beeps/beeps.cpp
beeps-0.2 ext/beeps/beeps.cpp
beeps-0.1.46 ext/beeps/beeps.cpp
beeps-0.1.45 ext/beeps/beeps.cpp
beeps-0.1.44 ext/beeps/beeps.cpp
beeps-0.1.43 ext/beeps/beeps.cpp
beeps-0.1.42 ext/beeps/beeps.cpp
beeps-0.1.41 ext/beeps/beeps.cpp
beeps-0.1.40 ext/beeps/beeps.cpp
beeps-0.1.39 ext/beeps/beeps.cpp
beeps-0.1.38 ext/beeps/beeps.cpp
beeps-0.1.37 ext/beeps/beeps.cpp
beeps-0.1.36 ext/beeps/beeps.cpp
beeps-0.1.35 ext/beeps/beeps.cpp
beeps-0.1.34 ext/beeps/beeps.cpp
beeps-0.1.33 ext/beeps/beeps.cpp