mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12: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
|
/* 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>
|
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||||
Date: Apr 1995
|
Date: Apr 1995
|
||||||
|
@ -70,11 +70,10 @@
|
||||||
[fileName cString], line);
|
[fileName cString], line);
|
||||||
vfprintf(stderr, [format cString], ap);
|
vfprintf(stderr, [format cString], ap);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
va_end(ap);
|
|
||||||
|
|
||||||
[NSException raise: NSInternalInconsistencyException
|
[NSException raise: NSInternalInconsistencyException
|
||||||
format:@"Assertion failed in %s, method %s",
|
format: format arguments: ap];
|
||||||
object_get_class_name(object), sel_get_name(aSelector)];
|
va_end(ap);
|
||||||
/* NOT REACHED */
|
/* NOT REACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue