mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
[NSAssertionHandler -handleFailureInMethod:object:file:
lineNumber:description:]: Use the FORMAT argument! (Reported by Wolfgang Baron <wbaron@ixpoint.de>.) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2021 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f66456b319
commit
cd0f233c55
1 changed files with 11 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
/* NSAssertionHandler - Object encapsulation of assertions
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995, 1997 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
Date: Apr 1995
|
||||
|
@ -70,11 +70,10 @@
|
|||
[fileName cString], line);
|
||||
vfprintf(stderr, [format cString], ap);
|
||||
fprintf(stderr, "\n");
|
||||
va_end(ap);
|
||||
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format:@"Assertion failed in %s, method %s",
|
||||
object_get_class_name(object), sel_get_name(aSelector)];
|
||||
format: format arguments: ap];
|
||||
va_end(ap);
|
||||
/* NOT REACHED */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue