summaryrefslogtreecommitdiff
path: root/packages/sundials/src/helpers.h
blob: 3d8fbc052e65558ebf0e1e19a086797af2596a0d (plain)
1
2
3
4
5
6
7
8
9
/* Check function return value...
    opt == 0 means SUNDIALS function allocates memory so check if
             returned NULL pointer
    opt == 1 means SUNDIALS function returns a flag so check if
             flag >= 0
    opt == 2 means function allocates memory so check if returned
             NULL pointer
*/
int check_flag(void *flagvalue, const char *funcname, int opt);