summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-04 15:09:02 -0400
committerDavid Robillard <d@drobilla.net>2024-06-04 15:09:02 -0400
commit16a6ab79df2d57f2060593fe3fda1e7dbf7349e3 (patch)
treede8bdae08547bdfef227c265553010c2126ab18c /src
parentd7aa17453b84ecd2bf3d8eb411858d174c963226 (diff)
downloadingen-16a6ab79df2d57f2060593fe3fda1e7dbf7349e3.tar.gz
ingen-16a6ab79df2d57f2060593fe3fda1e7dbf7349e3.tar.bz2
ingen-16a6ab79df2d57f2060593fe3fda1e7dbf7349e3.zip
Avoid use of "#if 0" as a supercomment
Mainly because clang-tidy complains about it.
Diffstat (limited to 'src')
-rw-r--r--src/server/ingen_lv2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 45a193c1..d474693d 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -73,6 +73,8 @@
#include <utility>
#include <vector>
+// #define CLEAR_GRAPH_ON_RESTORE 1
+
namespace ingen {
class Atom;
@@ -766,7 +768,7 @@ ingen_restore(LV2_Handle instance,
return LV2_STATE_ERR_UNKNOWN;
}
-#if 0
+#ifdef CLEAR_GRAPH_ON_RESTORE
// Remove existing root graph contents
std::shared_ptr<Engine> engine = plugin->engine;
for (const auto& b : engine->root_graph()->blocks()) {