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…