From 75bc0be4befc510f29772dc97520d50f08fbae6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 9 Nov 2022 22:47:55 +0100 Subject: [PATCH] gl-info: avoid trailing spaces in --limit output. Highly unprofessional. --- src/Magnum/Platform/gl-info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/gl-info.cpp b/src/Magnum/Platform/gl-info.cpp index 20c1343d2..88fb0057d 100644 --- a/src/Magnum/Platform/gl-info.cpp +++ b/src/Magnum/Platform/gl-info.cpp @@ -457,8 +457,8 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat /* Limits and implementation-defined values */ #define _h(val) Debug{} << "\n " << GL::Extensions::val::string() << Debug::nospace << ":"; - #define _l(val) Debug{} << " " << #val << (sizeof(#val) > 64 ? NewlineAndManySpaces.slice(0, 69) : NewlineAndManySpaces.slice(1, 65 - sizeof(#val))) << val; - #define _lvec(val) Debug{} << " " << #val << (sizeof(#val) > 42 ? NewlineAndManySpaces.slice(0, 47) : NewlineAndManySpaces.slice(1, 43 - sizeof(#val))) << val; + #define _l(val) Debug{} << " " << #val << Debug::nospace << (sizeof(#val) > 64 ? NewlineAndManySpaces.slice(0, 69) : NewlineAndManySpaces.slice(1, 66 - sizeof(#val))) << val; + #define _lvec(val) Debug{} << " " << #val << Debug::nospace << (sizeof(#val) > 42 ? NewlineAndManySpaces.slice(0, 47) : NewlineAndManySpaces.slice(1, 44 - sizeof(#val))) << val; Debug{} << "Limits and implementation-defined values:"; _lvec(GL::AbstractFramebuffer::maxViewportSize())