diff options
author | David Robillard <d@drobilla.net> | 2024-06-04 15:09:02 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-06-04 15:09:02 -0400 |
commit | 16a6ab79df2d57f2060593fe3fda1e7dbf7349e3 (patch) | |
tree | de8bdae08547bdfef227c265553010c2126ab18c | |
parent | d7aa17453b84ecd2bf3d8eb411858d174c963226 (diff) | |
download | ingen-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.
-rw-r--r-- | src/server/ingen_lv2.cpp | 4 | ||||
-rw-r--r-- | tests/ingen_test.cpp | 4 |
2 files changed, 6 insertions, 2 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()) { diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index 6f7e2588..ff61d7db 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -48,6 +48,8 @@ #include <string> #include <utility> +// #define DUMP_EVENTS 1 + namespace ingen::test { namespace { @@ -171,7 +173,7 @@ run(int argc, char** argv) forge.clear(); forge.read(*world->rdf_world(), cmds->c_obj(), subject.c_obj()); -#if 0 +#ifdef DUMP_EVENTS const LV2_Atom* atom = forge.atom(); cerr << "READ " << atom->size << " BYTES\n"; cerr << sratom_to_turtle( |