From 54376cba93680ad60c947b30045ebe00f9310b3d Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 11 Apr 2002 14:35:41 +0000 Subject: [PATCH] Renamed -sanity to -_sanity, and always compile it for the benefit of testcases git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13424 72102866-910b-0410-8b05-ffd578937521 --- Source/GSAttributedString.m | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Source/GSAttributedString.m b/Source/GSAttributedString.m index 1ce520b6e..270d6ad17 100644 --- a/Source/GSAttributedString.m +++ b/Source/GSAttributedString.m @@ -522,9 +522,15 @@ _attributesAtIndexEffectiveRange( #if SANITY_CHECKS -#define SANITY() [self sanity] - -- (void) sanity +#define SANITY() [self _sanity] + +#else +#define SANITY() +#endif + +/* We always compile in this method so that it is available from + * regression test cases. */ +- (void) _sanity { GSAttrInfo *info; unsigned i; @@ -543,9 +549,6 @@ _attributesAtIndexEffectiveRange( l = info->loc; } } -#else -#define SANITY() -#endif + (void) initialize {