Skip to content

Commit e8908e3

Browse files
committed
Merged main into live
2 parents 8b46c2a + 5abe47a commit e8908e3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

uwp/cpp-and-winrt-apis/macros.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ If defined, disables the default C++/WinRT diagnostic that detects that you mist
5050

5151
We strongly recommended that you don't define this symbol, because doing so masks a common source of programming errors.
5252

53+
## WINRT_NO_SOURCE_LOCATION
54+
If defined, disables the inclusion of source file and line number information
55+
(and in debug builds, function information),
56+
when originating errors.
57+
58+
This additional information is not used by C++/WinRT, but it is made available to other libraries which
59+
wish to interoperate with C++/WinRT exceptions, such as the [Windows Implementation Library](https://github.com/Microsoft/wil).
60+
61+
By default, the information is included when compiled in C++20 mode or higher.
62+
You may wish to suppress this information to reduce binary size.
63+
5364
## WINRT_DIAGNOSTICS
5465
If defined, enables internal statistics to track various operations:
5566
* The number of times each interface was queried.

0 commit comments

Comments
 (0)