add format checking to NSLog/NSException

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36800 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-07-02 15:53:46 +00:00
parent da4f7056ca
commit 9a93be8534
2 changed files with 4 additions and 4 deletions

View file

@ -124,7 +124,7 @@ extern "C" {
* <em>raised</em> using the -raise method.
*/
+ (void) raise: (NSString*)name
format: (NSString*)format,...;
format: (NSString*)format,... NS_FORMAT_FUNCTION(2,3);
/**
* Creates an exception with a name and a reason string using the
@ -134,7 +134,7 @@ extern "C" {
*/
+ (void) raise: (NSString*)name
format: (NSString*)format
arguments: (va_list)argList;
arguments: (va_list)argList NS_FORMAT_FUNCTION(2,0);
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5,GS_API_LATEST) && GS_API_VERSION( 11501,GS_API_LATEST)
/** Returns an array of the call stack return addresses at the point when