mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
4968b65b2f
Reveal more Rua documentation that I had already written years ago, and clean up Array a little.
42 lines
976 B
Objective-C
42 lines
976 B
Objective-C
#ifndef __ruamoko_Array_Private_h
|
|
#define __ruamoko_Array_Private_h
|
|
|
|
#include <Array.h>
|
|
|
|
/**
|
|
Internal Array methods
|
|
*/
|
|
@interface Array (Private)
|
|
|
|
///\name Private methods
|
|
///Don't use these unless you know what you're doing.
|
|
//\{
|
|
/**
|
|
Adds an object to the receiver, but without retaining it.
|
|
|
|
This is a dangerous thing to do, and it's only done so that we can use an
|
|
%Array to implement the AutoreleasePool class.
|
|
|
|
\warning Using this method can result in crashes, and is only included
|
|
for internal use by other classes.
|
|
*/
|
|
- (void) addObjectNoRetain: (id)anObject;
|
|
|
|
/**
|
|
Removes an object from the receiver, but without releasing it.
|
|
|
|
This can leak objects, and is only used so that we can use Arrays to
|
|
implement the autorelease system.
|
|
*/
|
|
- (void) removeObjectNoRelease: (id)anObject;
|
|
//\}
|
|
|
|
@end
|
|
|
|
/*
|
|
By including this header, we tell the compiler that we make use of Array's
|
|
private methods.
|
|
*/
|
|
@reference Array (Private);
|
|
|
|
#endif //__ruamoko_Array_Private_h
|