summaryrefslogtreecommitdiffstats
path: root/Graphics/HLSL2GLSLConverterLib
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-23 03:51:25 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-23 03:51:25 +0000
commit2f5b2dd6bb2db2464d9b9c9d95fc0a57559fa331 (patch)
tree2d5e8fecedb2d728c026a06ebb1930badd4aeccc /Graphics/HLSL2GLSLConverterLib
parentReworked vulkan dynamic heap deallocation to use main release queue (diff)
downloadDiligentCore-2f5b2dd6bb2db2464d9b9c9d95fc0a57559fa331.tar.gz
DiligentCore-2f5b2dd6bb2db2464d9b9c9d95fc0a57559fa331.zip
Reworked message formatting
Diffstat (limited to 'Graphics/HLSL2GLSLConverterLib')
-rw-r--r--Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
index 6eaa5497..bd032a06 100644
--- a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
+++ b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
@@ -916,11 +916,10 @@ String HLSL2GLSLConverterImpl::ConversionStream::PrintTokenContext( IteratorType
#define VERIFY_PARSER_STATE( Token, Condition, ... )\
- if( !(Condition) ) \
- { \
- MsgStream ss; \
- FormatMsg( ss, __VA_ARGS__ ); \
- LOG_ERROR_AND_THROW( ss.str(), "\n", PrintTokenContext(Token, 4) );\
+ if( !(Condition) ) \
+ { \
+ auto err = FormatString(__VA_ARGS__ ); \
+ LOG_ERROR_AND_THROW( err, "\n", PrintTokenContext(Token, 4) );\
}
template<typename IterType>