mcpp index

compat.wil

#include

Windows Implementation Library: header-only RAII for Win32 handles, COM and HRESULT

#include <wil/com.h>
mcpp add compat.wil@1.0.260126.7

用法

來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。

// Behavioral test: WIL's three families, each doing real work.
//
// A header-only package can fail in two ways a "does it link" test would miss:
// the headers might not compile under this toolchain at all (WIL is dense in
// __declspec, SAL annotations and intrinsics, and this index builds Windows
// with clang rather than cl.exe), and the RAII types might not actually release
// what they own. So the assertions observe SIDE EFFECTS — a handle that really
// closed, a COM refcount that really dropped — rather than just naming symbols.
#ifdef _WIN32

#include <wil/com.h>
#include <wil/resource.h>
#include <wil/result.h>

#include <windows.h>
#include <shobjidl.h>

#include <cassert>
#include <utility>

namespace {

// …

tests/examples/wil/tests/raii.cpp · 專案 tests/examples/wil

建置

targets
wil (lib)
language
c++23
C standard
c11
import std
no
include dirs
*/include

原始檔 (1)

  • mcpp_generated/wil_anchor.c

產生的檔案

  • mcpp_generated/wil_anchor.c

版本

版本平台 鏡像sha256
1.0.260126.7 最新 Windows GLOBAL CN de9e03b38ff0…