about summary refs log tree commit diff
path: root/src/checkpoint.h
diff options
context:
space:
mode:
authorPjotr Prins2025-11-20 11:05:57 +0100
committerPjotr Prins2025-11-20 11:05:57 +0100
commit7f1be7fc3cf51cc7c3b37b88b808c44f2fbf1add (patch)
treed85404f454a2af9eb5cb907881da245ea77a7371 /src/checkpoint.h
parent3165580c4038cbf6bcd5798bbf541557581430e2 (diff)
downloadpangemma-7f1be7fc3cf51cc7c3b37b88b808c44f2fbf1add.tar.gz
Comments HEAD master
Diffstat (limited to 'src/checkpoint.h')
-rw-r--r--src/checkpoint.h8
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)						\