Ignore:
Timestamp:
May 16, 2014 4:25:23 AM (8 years ago)
Author:
kulshres
Message:

Throw a std::exception instead of calling exit()

based on branch 'adolcerror' of https://github.com/b45ch1/adol-c

Suggested-by: Sebastian Walter <sebastian.walter@…>
Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/taping.c

    r507 r515  
    293293        default:
    294294            fprintf(DIAG_OUT, "ADOL-C error => unknown error type!\n");
    295             exit (-1);
    296             break;
    297     }
    298     exit (error + 1);
     295            adolc_exit(-1, "", __func__, __FILE__, __LINE__);
     296            break;
     297    }
     298    adolc_exit(error+1, "", __func__,  __FILE__, __LINE__);
     299    // exit (error + 1);
    299300}
    300301
Note: See TracChangeset for help on using the changeset viewer.