Files
archived-touchHLE/tests/TestApp_source/system_headers_objc.h
abnormalmaps c5147112b4 Allow autoreleasepool deallocation beneath the top
Allows NSAutoreleasePool to deallocate even if it is not the topmost
autoreleasepool for the current thread by deallocating all pools above
it. This matches iOS Simulator behaviour.

Change-Id: If62dec7f2160bf919cce8c094e2be879b3e4b477
2025-09-24 04:16:42 +00:00

39 lines
917 B
Objective-C

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
// Objective C headers we don't have open-source equivalents for.
#ifndef TOUCHHLE_OBJC_SYSTEM_H
#define TOUCHHLE_OBJC_SYSTEM_H
// Objective-C base:
typedef signed char BOOL;
typedef unsigned long NSUInteger;
#define false 0
#define true 1
typedef struct objc_selector *SEL;
typedef struct objc_class *Class;
typedef struct objc_object {
Class isa;
} *id;
id objc_msgSend(id, SEL, ...);
@interface NSObject {
Class isa;
}
+ (id)new;
- (id)init;
- (id)retain;
- (void)release;
- (id)autorelease;
- (void)dealloc;
- (NSUInteger)retainCount;
@end
@interface NSAutoreleasePool : NSObject
+ (void)addObject:(id)anObject;
- (void)addObject:(id)anObject;
- (void)drain;
@end
#endif // TOUCHHLE_OBJC_SYSTEM_H