Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9461df9

Browse files
committed
teach wil about c++/winrt exceptions by including cppwinrt.h (#2927)
It turns out that if you CATCH_LOG without including this file, and youend up catching a C++/WinRT hresult_exception, IT TURNS IT INTO AFAILFAST.Fixes#2591.Fixes#2881.Fixes#2807.
1 parenta5a8b41 commit9461df9

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

‎src/cascadia/TerminalApp/lib/pch.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#undef GetCurrentTime
1919
#endif
2020

21+
#include<wil/cppwinrt.h>
22+
2123
#include<unknwn.h>
2224

2325
#include<hstring.h>

‎src/cascadia/TerminalConnection/pch.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// Must be included before any WinRT headers.
1616
#include<unknwn.h>
1717

18+
#include<wil/cppwinrt.h>
19+
1820
#include"winrt/Windows.Foundation.h"
1921
#include"winrt/Windows.Security.Credentials.h"
2022
#include"winrt/Windows.Foundation.Collections.h"

‎src/cascadia/TerminalControl/pch.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#undef GetCurrentTime
1919
#endif
2020

21+
#include<wil/cppwinrt.h>
22+
2123
#include<unknwn.h>
2224
#include<winrt/Windows.Foundation.h>
2325
#include<winrt/Windows.Foundation.Collections.h>

‎src/cascadia/TerminalSettings/pch.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
#endif
2020

2121
#include<unknwn.h>
22+
#include<wil/cppwinrt.h>
2223
#include<winrt/Windows.Foundation.h>

‎src/cascadia/WindowsTerminal/pch.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Module Name:
3838
#ifdefGetCurrentTime
3939
#undef GetCurrentTime
4040
#endif
41+
42+
#include<wil/cppwinrt.h>
43+
4144
// Needed just for XamlIslands to work at all:
4245
#include<winrt/Windows.system.h>
4346
#include<winrt/Windows.Foundation.Collections.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp