aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--undo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/undo.h b/undo.h
index 055fc3d..a32d02a 100644
--- a/undo.h
+++ b/undo.h
@@ -8,6 +8,10 @@
#include <Scintilla.h>
+#ifdef DEBUG
+#include "parser.h"
+#endif
+
class UndoToken {
public:
SLIST_ENTRY(UndoToken) tokens;
@@ -43,6 +47,10 @@ public:
void
run(void)
{
+#ifdef DEBUG
+ if ((State **)ptr == &States::current)
+ g_printf("undo state -> %p\n", (void *)value);
+#endif
*ptr = value;
}
};