From 5db7c0f14869c32a02018d0e3faa455f734406fa Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Sun, 6 Oct 2024 09:29:54 -0700 Subject: [PATCH] Updated Implementation (markdown) --- Implementation.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Implementation.md b/Implementation.md index 047a414..12527cd 100644 --- a/Implementation.md +++ b/Implementation.md @@ -33,3 +33,6 @@ Avoid using Windows "portability" types except when dealing directly with Win32 As a low-level math library, DirectXMath does not make use of C++ exception handling or ``HRESULT`` COM-style error values. Generally, parameter validation is limited to ``assert`` macros. +# SAL annotation + +The DirectXMath library makes extensive use of SAL2 annotations (``_In_``, ``_Outptr_opt_``, etc.) which greatly improves the accuracy of the Visual C++ static code analysis (also known as PREFAST). The standard Windows headers ``#define`` them all to empty strings if not building with ``/analyze``, so they have no effect on code-generation.