|
||||
File indexing completed on 2025-01-18 10:03:22
0001 // Copyright (c) 2013-2014 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef Cocoa_LocalPool_HeaderFile 0015 #define Cocoa_LocalPool_HeaderFile 0016 0017 #if defined(__clang__) && (__clang_major__ >= 4) 0018 #if __has_feature(objc_arc) 0019 #define HAVE_OBJC_ARC 0020 #endif 0021 #endif 0022 0023 #ifdef HAVE_OBJC_ARC 0024 0025 // @autoreleasepool should be used within ARC 0026 0027 #else 0028 0029 #ifdef __OBJC__ 0030 @class NSAutoreleasePool; 0031 #else 0032 struct NSAutoreleasePool; 0033 #endif 0034 0035 //! Auxiliary class to create local pool. 0036 class Cocoa_LocalPool 0037 { 0038 0039 public: 0040 0041 Cocoa_LocalPool(); 0042 ~Cocoa_LocalPool(); 0043 0044 private: 0045 0046 NSAutoreleasePool* myPoolObj; 0047 0048 }; 0049 0050 #endif // ARC 0051 0052 #endif // __Cocoa_LocalPool_h_
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |