mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Fix some assertions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13614 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
64f1f86c24
commit
ac468059e6
1 changed files with 6 additions and 6 deletions
|
@ -501,13 +501,13 @@ pty_slave(const char* name)
|
||||||
*/
|
*/
|
||||||
- (void) setStandardError: (id)hdl
|
- (void) setStandardError: (id)hdl
|
||||||
{
|
{
|
||||||
NSAssert([hdl isKindOfClass: [NSFileHandle class]] ||
|
|
||||||
[hdl isKindOfClass: [NSPipe class]], NSInvalidArgumentException);
|
|
||||||
if (_hasLaunched)
|
if (_hasLaunched)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
format: @"NSTask - task has been launched"];
|
format: @"NSTask - task has been launched"];
|
||||||
}
|
}
|
||||||
|
NSAssert(hdl != nil && ([hdl isKindOfClass: [NSFileHandle class]] ||
|
||||||
|
[hdl isKindOfClass: [NSPipe class]]), NSInvalidArgumentException);
|
||||||
ASSIGN(_standardError, hdl);
|
ASSIGN(_standardError, hdl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -523,13 +523,13 @@ pty_slave(const char* name)
|
||||||
*/
|
*/
|
||||||
- (void) setStandardInput: (id)hdl
|
- (void) setStandardInput: (id)hdl
|
||||||
{
|
{
|
||||||
NSAssert([hdl isKindOfClass: [NSFileHandle class]] ||
|
|
||||||
[hdl isKindOfClass: [NSPipe class]], NSInvalidArgumentException);
|
|
||||||
if (_hasLaunched)
|
if (_hasLaunched)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
format: @"NSTask - task has been launched"];
|
format: @"NSTask - task has been launched"];
|
||||||
}
|
}
|
||||||
|
NSAssert(hdl != nil && ([hdl isKindOfClass: [NSFileHandle class]] ||
|
||||||
|
[hdl isKindOfClass: [NSPipe class]]), NSInvalidArgumentException);
|
||||||
ASSIGN(_standardInput, hdl);
|
ASSIGN(_standardInput, hdl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -545,13 +545,13 @@ pty_slave(const char* name)
|
||||||
*/
|
*/
|
||||||
- (void) setStandardOutput: (id)hdl
|
- (void) setStandardOutput: (id)hdl
|
||||||
{
|
{
|
||||||
NSAssert([hdl isKindOfClass: [NSFileHandle class]] ||
|
|
||||||
[hdl isKindOfClass: [NSPipe class]], NSInvalidArgumentException);
|
|
||||||
if (_hasLaunched)
|
if (_hasLaunched)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
format: @"NSTask - task has been launched"];
|
format: @"NSTask - task has been launched"];
|
||||||
}
|
}
|
||||||
|
NSAssert(hdl != nil && ([hdl isKindOfClass: [NSFileHandle class]] ||
|
||||||
|
[hdl isKindOfClass: [NSPipe class]]), NSInvalidArgumentException);
|
||||||
ASSIGN(_standardOutput, hdl);
|
ASSIGN(_standardOutput, hdl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue