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