diff options
Diffstat (limited to 'packages/sundials/src/helpers.h')
-rw-r--r-- | packages/sundials/src/helpers.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/sundials/src/helpers.h b/packages/sundials/src/helpers.h new file mode 100644 index 0000000..3d8fbc0 --- /dev/null +++ b/packages/sundials/src/helpers.h | |||
@@ -0,0 +1,9 @@ | |||
1 | /* Check function return value... | ||
2 | opt == 0 means SUNDIALS function allocates memory so check if | ||
3 | returned NULL pointer | ||
4 | opt == 1 means SUNDIALS function returns a flag so check if | ||
5 | flag >= 0 | ||
6 | opt == 2 means function allocates memory so check if returned | ||
7 | NULL pointer | ||
8 | */ | ||
9 | int check_flag(void *flagvalue, const char *funcname, int opt); | ||