diff options
| author | Pjotr Prins | 2025-11-20 11:05:57 +0100 |
|---|---|---|
| committer | Pjotr Prins | 2025-11-20 11:05:57 +0100 |
| commit | 7f1be7fc3cf51cc7c3b37b88b808c44f2fbf1add (patch) | |
| tree | d85404f454a2af9eb5cb907881da245ea77a7371 /src/checkpoint.h | |
| parent | 3165580c4038cbf6bcd5798bbf541557581430e2 (diff) | |
| download | pangemma-7f1be7fc3cf51cc7c3b37b88b808c44f2fbf1add.tar.gz | |
Diffstat (limited to 'src/checkpoint.h')
| -rw-r--r-- | src/checkpoint.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/checkpoint.h b/src/checkpoint.h index c2457d9..ae46361 100644 --- a/src/checkpoint.h +++ b/src/checkpoint.h @@ -26,6 +26,14 @@ using namespace std; extern string checkpoint_name; +/* + Checkpoint functions display a message in debug mode when + reached. If the (unique) msg (tag) is equal to the global + checkpoint_name the program will stop. The idea is that we can + stop computation at any checkpoint. Later we can write the code to + restart at a checkpoint. + */ + void checkpoint_run(string msg, string filename, string srcfilename, int line, string funcname); #define checkpoint(msg, fname) \ |
