diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-07-12 07:42:36 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-07-12 07:44:59 +0200 |
commit | 295c3eb9f86b6928f82d79c6705daa2e0f61b5a4 (patch) | |
tree | f921367e29773bd3a106331449485813f28c646c /solenv | |
parent | 6fd9987ae650bb2f0dd40aec95662a75c9a85598 (diff) |
Natvis: improve ErrCode visualizer
Change-Id: I5046a2642e2167495ea7efa0fd1b04f5e2163657
Reviewed-on: https://gerrit.libreoffice.org/75464
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/vs/LibreOffice.natvis | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/solenv/vs/LibreOffice.natvis b/solenv/vs/LibreOffice.natvis index a9b9f561b791..549d5c96c9c7 100644 --- a/solenv/vs/LibreOffice.natvis +++ b/solenv/vs/LibreOffice.natvis @@ -469,6 +469,11 @@ </Expand> </Type> <Type Name="ErrCode"> - <DisplayString>Area: {static_cast<ErrCodeArea>((m_value >> 13) & 0x01fff),en}, class: {static_cast<ErrCodeClass>((m_value >> 8) & 0x1f),en}, code: {m_value & 0xff}</DisplayString> + <DisplayString Condition="m_value == 0">None</DisplayString> + <DisplayString IncludeView="dynamic" Condition="m_value & (31UL << 26)">dynamic: {(m_value >> 26) & 31UL} </DisplayString> + <DisplayString IncludeView="dynamic"/> + <DisplayString IncludeView="detail">{{{*this,view(dynamic)}area: {static_cast<ErrCodeArea>((m_value >> 13) & 0x01fff),en}, class: {static_cast<ErrCodeClass>((m_value >> 8) & 0x1f),en}, code: {m_value & 0xff}}}</DisplayString> + <DisplayString Condition="m_value & 0x80000000UL">Warning: {*this,view(detail)}</DisplayString> + <DisplayString>Error: {*this,view(detail)}</DisplayString> </Type> </AutoVisualizer> |