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