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.cpp | |
parent | c6a475370d4c1190685195265cb64ccc7bd17745 (diff) | |
download | pangemma-2701a364228d91ba2c52f511ad6619d070e2235b.tar.gz |
Show checkpoints passed with -debug switch
Diffstat (limited to 'src/checkpoint.cpp')
-rw-r--r-- | src/checkpoint.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checkpoint.cpp b/src/checkpoint.cpp index 6fcc1a2..a37c1be 100644 --- a/src/checkpoint.cpp +++ b/src/checkpoint.cpp @@ -26,7 +26,8 @@ using namespace std; -void checkpoint(string msg, string filename) { +void checkpoint_run(string msg, string filename, string srcfilename, int line, string funcname) { + is_debug_mode() && std::cerr << "**** DEBUG: checkpoint " << msg << " passed with " << filename << " in " << srcfilename << " at line " << line << " in " << funcname << endl; if (msg == checkpoint_name) { cerr << "**** Checkpoint reached: " << msg << " (normal exit)" << endl; exit(0); |