diff options
author | Pjotr Prins | 2018-01-27 14:23:59 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-01-27 14:23:59 +0000 |
commit | 7f61ca0761e93918f64119c50b32e2812eba8291 (patch) | |
tree | 3e6102684b292567c83496c5b9979b806a2975b8 /src/debug.h | |
parent | b0d31fa2631622d09730c85b5ce3e82b4886dd45 (diff) | |
download | pangemma-7f61ca0761e93918f64119c50b32e2812eba8291.tar.gz |
Extra error info on strtok parsing failure - should help support
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h index 208868e..67764df 100644 --- a/src/debug.h +++ b/src/debug.h @@ -59,7 +59,8 @@ int gsl_vector_safe_memcpy (gsl_vector *dest, const gsl_vector *src); void gsl_vector_safe_free (gsl_vector *v); void do_gsl_vector_safe_free (gsl_vector *v, const char *__pretty_function, const char *__file, int __line); -char *do_strtok_safe(char *tokenize, const char *delimiters, const char *__pretty_function, const char *__file, int __line); +char *do_strtok_safe(char *tokenize, const char *delimiters, const char *__pretty_function, const char *__file, int __line, const char *infile = NULL); +#define strtok_safe2(string,delimiters,infile) do_strtok_safe(string,delimiters,__SHOW_FUNC,__FILE__,__LINE__,infile) #define strtok_safe(string,delimiters) do_strtok_safe(string,delimiters,__SHOW_FUNC,__FILE__,__LINE__) // Validation routines |