diff options
| author | azhirnov <zh1dron@gmail.com> | 2020-08-31 12:04:02 +0000 |
|---|---|---|
| committer | azhirnov <zh1dron@gmail.com> | 2020-08-31 12:04:02 +0000 |
| commit | 773ae81b4b6cfd90ca4ddf9ee05a2cee5c864562 (patch) | |
| tree | a8103e3180a6748ca8db1e0ae8c7060f5e229d4c /Graphics/HLSL2GLSLConverterLib | |
| parent | use GLSL for Vulkan, because of driver crashes when used DXIL to SPIRV with t... (diff) | |
| download | DiligentCore-773ae81b4b6cfd90ca4ddf9ee05a2cee5c864562.tar.gz DiligentCore-773ae81b4b6cfd90ca4ddf9ee05a2cee5c864562.zip | |
removed unused DXILUtils, fixed some Codacy issues
Diffstat (limited to 'Graphics/HLSL2GLSLConverterLib')
| -rw-r--r-- | Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
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 <typename IterType> bool SkipPrefix(const Char* RefStr, IterType& begin, IterType end) |
