Don't include angular brackets for concrete types

In the VST2 log output. I just use this syntax as a more descriptive
handwavy substitute for the actual data.
This commit is contained in:
Robbert van der Helm
2021-08-17 15:13:51 +02:00
parent f55a04a1fc
commit c1b4410e6b
+7 -8
View File
@@ -410,7 +410,7 @@ void Vst2Logger::log_event(
std::visit(
overload{
[&](const std::nullptr_t&) { message << "<nullptr>"; },
[&](const std::nullptr_t&) { message << "nullptr"; },
[&](const std::string& s) {
if (s.size() < 32) {
message << "\"" << s << "\"";
@@ -426,7 +426,7 @@ void Vst2Logger::log_event(
[&](const native_size_t& window_id) {
message << "<window " << window_id << ">";
},
[&](const AEffect&) { message << "<nullptr>"; },
[&](const AEffect&) { message << "nullptr"; },
[&](const DynamicVstEvents& events) {
message << "<" << events.events.size() << " midi_events";
if (!events.sysex_data.empty()) {
@@ -445,15 +445,13 @@ void Vst2Logger::log_event(
[&](const VstParameterProperties&) {
message << "<writable_buffer>";
},
[&](const WantsAEffectUpdate&) { message << "<nullptr>"; },
[&](const WantsAudioShmBufferConfig&) {
message << "<nullptr>";
},
[&](const WantsAEffectUpdate&) { message << "nullptr"; },
[&](const WantsAudioShmBufferConfig&) { message << "nullptr"; },
[&](const WantsChunkBuffer&) {
message << "<writable_buffer>";
},
[&](const WantsVstRect&) { message << "<VstRect**>"; },
[&](const WantsVstTimeInfo&) { message << "<nullptr>"; },
[&](const WantsVstRect&) { message << "VstRect**"; },
[&](const WantsVstTimeInfo&) { message << "nullptr"; },
[&](const WantsString&) { message << "<writable_string>"; }},
payload);
@@ -465,6 +463,7 @@ void Vst2Logger::log_event(
void Vst2Logger::log_event_response(
bool is_dispatch,
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
int opcode,
intptr_t return_value,
const Vst2EventResult::Payload& payload,