From 4f2a7cd1995af882d606217fead8c12a6037bd11 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 29 Nov 2019 15:37:24 +0100 Subject: [PATCH] added bool ldebug (for print-debugging) and moved breakhere (breakpoint helper) to debug.cpp --- binary-tiling.cpp | 4 ---- debug.cpp | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 1fd8fe70..9c96f28e 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -51,10 +51,6 @@ EX namespace binary { } #endif - EX void breakhere() { - exit(1); - } - EX heptagon *path(heptagon *h, int d, int d1, std::initializer_list p) { static int rec = 0; rec++; if(rec>100) exit(1); diff --git a/debug.cpp b/debug.cpp index 096e83c8..8cabbaa5 100644 --- a/debug.cpp +++ b/debug.cpp @@ -814,4 +814,10 @@ int read_cheat_args() { auto ah_cheat = addHook(hooks_args, 0, read_cheat_args); #endif +EX bool ldebug = false; + +EX void breakhere() { + exit(1); + } + }