upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/process.cpp
diff options
context:
space:
mode:
authorAAyberkU <97833630+AAyberkU@users.noreply.github.com>2026-11-23 01:54:51 +0300
committerAAyberkU <97833630+AAyberkU@users.noreply.github.com>2026-11-23 01:54:51 +0300
commit40b71d427bc129a96f6b0cda2235ae122f0e557d (patch)
tree32c62596249f45dc6924866e6b4696ae0d5d857c /runtime/shims/process.cpp
parentaa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff)
gen_d3d12_stubs: --report counts a method declared in both #if/#else branches once
d3d12.h declares each struct-returning method twice, once in each branch of `#if defined(_MSC_VER) || !defined(_WIN32)` / `#else`. coverage() counted every declaration, so with the Windows SDK 10.0.26100.0 header the report gave ID3D12DescriptorHeap 11 methods instead of 8 (GetDesc and the two Get*DescriptorHandleForHeapStart twice), ID3D12Resource 13 instead of 12 and ID3D12Device11 82 instead of 77; implemented counts were inflated the same way, and a method not yet overridden was listed twice in "open". coverage() now removes repeated (interface, method) pairs from the chain's method list, keeping vtable order. Stub generation is unchanged: the generated classes still keep both preprocessor branches, and their output is byte-identical. Test: a synthetic header with a method in both branches; the report counts and lists it once, and the emitted stub class still contains both branches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/process.cpp')
0 files changed, 0 insertions, 0 deletions