mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Add some asserts to NSMethodSignature to make the analyser happy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32065 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
37740d0f66
commit
ddc2d68bec
1 changed files with 5 additions and 0 deletions
|
@ -452,6 +452,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
||||||
if (_inf == 0)
|
if (_inf == 0)
|
||||||
{
|
{
|
||||||
[self methodInfo];
|
[self methodInfo];
|
||||||
|
NSAssert(0 != _inf, @"Initialising failed");
|
||||||
}
|
}
|
||||||
return _inf[index+1];
|
return _inf[index+1];
|
||||||
}
|
}
|
||||||
|
@ -471,6 +472,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
||||||
if (_inf == 0)
|
if (_inf == 0)
|
||||||
{
|
{
|
||||||
[self methodInfo];
|
[self methodInfo];
|
||||||
|
NSAssert(0 != _inf, @"Initialising failed");
|
||||||
}
|
}
|
||||||
return _inf[index+1].qtype;
|
return _inf[index+1].qtype;
|
||||||
}
|
}
|
||||||
|
@ -480,6 +482,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
||||||
if (_inf == 0)
|
if (_inf == 0)
|
||||||
{
|
{
|
||||||
[self methodInfo];
|
[self methodInfo];
|
||||||
|
NSAssert(0 != _inf, @"Initialising failed");
|
||||||
}
|
}
|
||||||
return (_inf[0].qual & _F_ONEWAY) ? YES : NO;
|
return (_inf[0].qual & _F_ONEWAY) ? YES : NO;
|
||||||
}
|
}
|
||||||
|
@ -489,6 +492,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
||||||
if (_inf == 0)
|
if (_inf == 0)
|
||||||
{
|
{
|
||||||
[self methodInfo];
|
[self methodInfo];
|
||||||
|
NSAssert(0 != _inf, @"Initialising failed");
|
||||||
}
|
}
|
||||||
return _inf[0].size;
|
return _inf[0].size;
|
||||||
}
|
}
|
||||||
|
@ -498,6 +502,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
||||||
if (_inf == 0)
|
if (_inf == 0)
|
||||||
{
|
{
|
||||||
[self methodInfo];
|
[self methodInfo];
|
||||||
|
NSAssert(0 != _inf, @"Initialising failed");
|
||||||
}
|
}
|
||||||
return _inf[0].qtype;
|
return _inf[0].qtype;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue