Sha256: 1275b6507b7a39335591da25298ee8c68dff3121ed5831de36091cf4ec1c9158
Contents?: true
Size: 490 Bytes
Versions: 51
Compression:
Stored size: 490 Bytes
Contents
// -*- objc -*- #include "reflex/reflex.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
51 entries across 51 versions & 1 rubygems