Sha256: 02eea734fa17f88cfa51cb3aac608347b01870a617b349385d11f3713d3b56f0

Contents?: true

Size: 567 Bytes

Versions: 7

Compression:

Stored size: 567 Bytes

Contents

// -*- objc -*-
#include "reflex/reflex.h"


#include "reflex/exception.h"
#import "app_delegate.h"


namespace Reflex
{


	namespace global
	{

		static NSAutoreleasePool* pool = nil;

	}// global


	bool
	initialized ()
	{
		return global::pool;
	}

	void
	init ()
	{
		if (global::pool)
			reflex_error(__FILE__, __LINE__, "already initialized.");

		global::pool = [[NSAutoreleasePool alloc] init];
	}

	void
	fin ()
	{
		if (!global::pool)
			reflex_error(__FILE__, __LINE__, "not initialized.");

		[global::pool release];
		global::pool = nil;
	}


}// Reflex

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reflexion-0.1.12 src/ios/reflex.mm
reflexion-0.1.11 src/ios/reflex.mm
reflexion-0.1.10 src/ios/reflex.mm
reflexion-0.1.9.1 src/ios/reflex.mm
reflexion-0.1.9 src/ios/reflex.mm
reflexion-0.1.8 src/ios/reflex.mm
reflexion-0.1.7 src/ios/reflex.mm