ASPiK SDK
autoreleasepool.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __autoreleasepool__
6 #define __autoreleasepool__
7 
8 #include "../../../vstguibase.h"
9 
10 #if MAC
11 
12 #ifdef __OBJC__
13 @class NSAutoreleasePool;
14 #else
15 struct NSAutoreleasePool;
16 #endif // __OBJC__
17 
18 namespace VSTGUI {
19 
20 //------------------------------------------------------------------------------------
21 class AutoreleasePool
22 {
23 public:
24  AutoreleasePool ();
25  ~AutoreleasePool () noexcept;
26 
27 //------------------------------------------------------------------------------------
28 protected:
29  NSAutoreleasePool* pool;
30 };
31 
32 } // namespace
33 
34 #endif // MAC
35 
36 #endif // __autoreleasepool__
Definition: customcontrols.cpp:8