From 06d6fd8a98901d9cd1f5a8477f814b74a16f9be7 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Wed, 9 Aug 2006 13:21:22 +0000 Subject: [PATCH] Improve documentation of GS_API_VERSION git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23234 72102866-910b-0410-8b05-ffd578937521 --- Headers/Foundation/NSObject.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Headers/Foundation/NSObject.h b/Headers/Foundation/NSObject.h index bf62be87e..2954db6a8 100644 --- a/Headers/Foundation/NSObject.h +++ b/Headers/Foundation/NSObject.h @@ -72,6 +72,15 @@ *

*

Also see OS_API_VERSION *

+ *

NB. If you are changing the API (eg adding a new feature) you need + * to control the visibility io the new header file code using
+ * #if GS_API_VERSION(ADD,GS_API_LATEST)
+ * where ADD is the version number of the next minor + * release after the most recent one.
+ * As a general principle you should not change the API with + * changing subminor version numbers ... as that tends to confuse + * people (though Apple has sometimes done it). + *

*/ #define GS_API_VERSION(ADD,REM) \ (!defined(GS_GNUSTEP_V) || (GS_GNUSTEP_V >= ADD && GS_GNUSTEP_V < REM))