diff options
author | Pjotr Prins | 2025-01-04 01:59:26 -0600 |
---|---|---|
committer | Pjotr Prins | 2025-01-04 01:59:26 -0600 |
commit | 2701a364228d91ba2c52f511ad6619d070e2235b (patch) | |
tree | bb2f24888472dc37c243bd439964661d7ae9a91d /src/checkpoint.h | |
parent | c6a475370d4c1190685195265cb64ccc7bd17745 (diff) | |
download | pangemma-2701a364228d91ba2c52f511ad6619d070e2235b.tar.gz |
Show checkpoints passed with -debug switch
Diffstat (limited to 'src/checkpoint.h')
-rw-r--r-- | src/checkpoint.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/checkpoint.h b/src/checkpoint.h index 7a70855..2792fac 100644 --- a/src/checkpoint.h +++ b/src/checkpoint.h @@ -20,12 +20,14 @@ #ifndef __CHECKPOINT_H__ #define __CHECKPOINT_H__ -#include <string> +#include <debug.h> using namespace std; extern string checkpoint_name; -void checkpoint(string msg, string filename); +void checkpoint_run(string msg, string filename, string srcfilename, int line, string funcname); +#define checkpoint(msg, fname) \ + checkpoint_run(msg, fname, __FILE__, __LINE__, __SHOW_FUNC) #endif |