Implement partial support for declarations.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31907 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-01-17 19:37:27 +00:00
parent 984fb84dd7
commit 7e79628495
3 changed files with 232 additions and 16 deletions

View file

@ -1847,7 +1847,9 @@ NSDictionary *locale)
obj = args_value[specs[nspecs_done].data_arg].pa_object;
if (!obj) dsc = @"(nil)";
/* On OSX a nil object is reported as '(null)' so we do the same.
*/
if (!obj) dsc = @"(null)";
else if ([obj respondsToSelector: @selector(descriptionWithLocale:)]) dsc = [obj descriptionWithLocale: locale];
else dsc = [obj description];