diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-11 06:31:03 +0100 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-11 06:31:03 +0100 |
| commit | d07d857360339ba8a56c1f50e7d3b1647d4b883c (patch) | |
| tree | cfdb859897790a808fb3545f1850d7869a45f29c | |
| parent | db37a80f4d5d94c6ac13aa7c38386c71d168bb11 (diff) | |
DEBUG support for printing state change undo tokens
| -rw-r--r-- | undo.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; } }; |
