mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fixed retain/release error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
158e28ec5e
commit
06bab9398d
1 changed files with 14 additions and 0 deletions
|
@ -57,13 +57,27 @@
|
|||
* GSI_ARRAY_NO_RETAIN
|
||||
* Defined if no retain operation is needed for a an item
|
||||
*/
|
||||
#ifdef GSI_ARRAY_NO_RETAIN
|
||||
#ifdef GSI_ARRAY_RETAIN
|
||||
#undef GSI_ARRAY_RETAIN
|
||||
#endif
|
||||
#define GSI_ARRAY_RETAIN(X)
|
||||
#else
|
||||
#ifndef GSI_ARRAY_RETAIN
|
||||
#define GSI_ARRAY_RETAIN(X) [(X).obj retain]
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef GSI_ARRAY_NO_RELEASE
|
||||
#ifdef GSI_ARRAY_RELEASE
|
||||
#undef GSI_ARRAY_RELEASE
|
||||
#endif
|
||||
#define GSI_ARRAY_RELEASE(X)
|
||||
#else
|
||||
#ifndef GSI_ARRAY_RELEASE
|
||||
#define GSI_ARRAY_RELEASE(X) [(X).obj release]
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If there is no bitmask defined to supply the types that
|
||||
|
|
Loading…
Reference in a new issue