IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2010, 3:17:54 PM (16 years ago)
Author:
Paul Price
Message:

Bit more elegant solution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackFinish.c

    r27107 r27108  
    9494
    9595
    96 psExit ppStackExitCode(void)
     96psExit ppStackExitCode(psExit exitValue)
    9797{
    98     psExit exitValue = PS_EXIT_SUCCESS;        // Exit code to return
     98    if (exitValue != PS_EXIT_SUCCESS) {
     99        return exitValue;
     100    }
     101
    99102    psErrorCode errorCode = psErrorCodeLast(); // Error code
    100103    if (errorCode != PS_ERR_NONE) {
Note: See TracChangeset for help on using the changeset viewer.