mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add dedicated PrimitiveWrapper logging for bools
This commit is contained in:
@@ -351,7 +351,12 @@ class Vst3Logger {
|
||||
bool from_cache = false) {
|
||||
// For logging all primitive return values other than `tresult`
|
||||
log_response_base(is_host_plugin, [&](auto& message) {
|
||||
message << value;
|
||||
if constexpr (std::is_same_v<T, bool>) {
|
||||
message << (value ? "true" : "false");
|
||||
} else {
|
||||
message << value;
|
||||
}
|
||||
|
||||
if (from_cache) {
|
||||
message << " (from cache)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user