forked from OSchip/llvm-project
Avoid output on successful execution of the SWIG scripts
Standard practice for tools like this upon success is no output and a zero return value. llvm-svn: 232841
This commit is contained in:
parent
ae9d841c89
commit
b933fb2c0b
|
@ -129,11 +129,9 @@ def get_help_information():
|
|||
def program_exit_success( vnResult, vMsg ):
|
||||
strMsg = "";
|
||||
|
||||
if vMsg.__len__() == 0:
|
||||
strMsg = "%s (%d)" % (strExitMsgSuccess, vnResult);
|
||||
else:
|
||||
if vMsg.__len__() != 0:
|
||||
strMsg = "%s: %s (%d)" % (strExitMsgSuccess, vMsg, vnResult);
|
||||
print strMsg;
|
||||
print strMsg;
|
||||
|
||||
sys.exit( vnResult );
|
||||
|
||||
|
|
|
@ -100,11 +100,9 @@ Usage:\n\
|
|||
def program_exit_success( vnResult, vMsg ):
|
||||
strMsg = "";
|
||||
|
||||
if vMsg.__len__() == 0:
|
||||
strMsg = "%s (%d)" % (strExitMsgSuccess, vnResult);
|
||||
else:
|
||||
if vMsg.__len__() != 0:
|
||||
strMsg = "%s: %s (%d)" % (strExitMsgSuccess, vMsg, vnResult);
|
||||
print strMsg;
|
||||
print strMsg;
|
||||
|
||||
sys.exit( vnResult );
|
||||
|
||||
|
|
Loading…
Reference in New Issue