Sha256: 4eca82f627236841f2c2e34976fc80723fb148276e6b51cdbd3b360bca2ad43d

Contents?: true

Size: 572 Bytes

Versions: 4

Compression:

Stored size: 572 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __RUCY_GC_H__
#define __RUCY_GC_H__


#include <boost/noncopyable.hpp>
#include <ruby.h>
#include <rucy/value.h>


namespace Rucy
{


	class GCGuard : public boost::noncopyable
	{

		public:

			GCGuard (VALUE* v);

			GCGuard (Value* v);

			~GCGuard ();

		private:

			VALUE* pval;

	};// GCGuard


	class GlobalValue
	{

		public:

			GlobalValue (Value v);

			Value value () const;

			operator VALUE () const;

			operator Value () const;

		private:

			Value val;

			GCGuard guard;

	};// GlobalValue


}// Rucy


#endif//EOH

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rucy-0.1.3 include/rucy/gc.h
rucy-0.1.2 include/rucy/gc.h
rucy-0.1.1 include/rucy/gc.h
rucy-0.1.0 include/rucy/gc.h