Sha256: df8f0ebd9950acbbabcfc52bf4bf8e1d9e0d11dcdc46b4bf712cb4b018d5f5e8

Contents?: true

Size: 514 Bytes

Versions: 49

Compression:

Stored size: 514 Bytes

Contents

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


#import <Cocoa/Cocoa.h>
#include "reflex/exception.h"


namespace Reflex
{


	namespace global
	{

		static NSAutoreleasePool* pool = nil;

	}// global


	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

49 entries across 49 versions & 1 rubygems

Version Path
reflexion-0.3.2 src/osx/reflex.mm
reflexion-0.3.1 src/osx/reflex.mm
reflexion-0.3 src/osx/reflex.mm
reflexion-0.2.1 src/osx/reflex.mm
reflexion-0.2 src/osx/reflex.mm
reflexion-0.1.57 src/osx/reflex.mm
reflexion-0.1.56 src/osx/reflex.mm
reflexion-0.1.55 src/osx/reflex.mm
reflexion-0.1.54 src/osx/reflex.mm
reflexion-0.1.53 src/osx/reflex.mm
reflexion-0.1.52 src/osx/reflex.mm
reflexion-0.1.51 src/osx/reflex.mm
reflexion-0.1.50 src/osx/reflex.mm
reflexion-0.1.49 src/osx/reflex.mm
reflexion-0.1.48 src/osx/reflex.mm
reflexion-0.1.47 src/osx/reflex.mm
reflexion-0.1.46 src/osx/reflex.mm
reflexion-0.1.45 src/osx/reflex.mm
reflexion-0.1.44 src/osx/reflex.mm
reflexion-0.1.43 src/osx/reflex.mm