Browse Source

JUCE_AUTORELEASEPOOL fix.

tags/2021-05-28
jules 13 years ago
parent
commit
3cb35daab7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/memory/juce_Memory.h

+ 1
- 1
modules/juce_core/memory/juce_Memory.h View File

@@ -84,7 +84,7 @@ inline Type* createCopyIfNotNull (const Type* pointer) { return pointer != n
Because this may use the @autoreleasepool syntax, you must follow the macro with
a set of braces to mark the scope of the pool.
*/
#if JUCE_COMPILER_SUPPORTS_ARC || DOXYGEN
#if (JUCE_COMPILER_SUPPORTS_ARC && defined (__OBJC__)) || DOXYGEN
#define JUCE_AUTORELEASEPOOL @autoreleasepool
#else
#define JUCE_AUTORELEASEPOOL const juce::ScopedAutoReleasePool JUCE_JOIN_MACRO (autoReleasePool_, __LINE__);


Loading…
Cancel
Save