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:
Richard Frith-MacDonald 2001-01-15 12:41:59 +00:00
parent 158e28ec5e
commit 06bab9398d

View file

@ -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