Sha256: 58a58f88a0ae3ea423a0d040c85ce2c0f77252d77e5952eaf2aa51e9a804fb14
Contents?: true
Size: 539 Bytes
Versions: 12
Compression:
Stored size: 539 Bytes
Contents
// -*- objc -*- #include "rays/rays.h" #import <Foundation/Foundation.h> #include "rays/exception.h" namespace Rays { namespace global { static NSAutoreleasePool* pool = nil; }// global void init () { if (global::pool) rays_error(__FILE__, __LINE__, "Rays::init(): already initialized."); global::pool = [[NSAutoreleasePool alloc] init]; } void fin () { if (!global::pool) rays_error(__FILE__, __LINE__, "Rays::fin(): not initialized."); [global::pool release]; global::pool = nil; } }// Rays
Version data entries
12 entries across 6 versions & 1 rubygems