From 773ae81b4b6cfd90ca4ddf9ee05a2cee5c864562 Mon Sep 17 00:00:00 2001 From: azhirnov Date: Mon, 31 Aug 2020 15:04:02 +0300 Subject: removed unused DXILUtils, fixed some Codacy issues --- .../HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Graphics/HLSL2GLSLConverterLib') diff --git a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp index 9b1d3f24..5ffa7d55 100644 --- a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp +++ b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp @@ -939,12 +939,15 @@ String HLSL2GLSLConverterImpl::ConversionStream::PrintTokenContext(IteratorType& } -#define VERIFY_PARSER_STATE(Token, Condition, ...) \ - if (!(Condition)) \ - { \ - auto err = FormatString(__VA_ARGS__); \ - LOG_ERROR_AND_THROW(err, "\n", PrintTokenContext(Token, 4)); \ - } +#define VERIFY_PARSER_STATE(Token, Condition, ...) \ + do \ + { \ + if (!(Condition)) \ + { \ + auto err = FormatString(__VA_ARGS__); \ + LOG_ERROR_AND_THROW(err, "\n", PrintTokenContext(Token, 4)); \ + } \ + } while (false) template bool SkipPrefix(const Char* RefStr, IterType& begin, IterType end) -- cgit v1.2.3