`Expects` 和 `Ensures` 应为 `GSL_EXPECTS` 和 `GSL_ENSURES`
作者: sean-parent创建于 2022年2月2日更新于 2026年1月23日
标签Priority: LowType: EnhancementStatus: Blocked
GSL 应遵循核心指南。`Expects` 和 `Ensures` 应为 `GSL_EXPECTS` 和 `GSL_ENSURES`。作为为定义广泛使用的宏 `check` 和 `require` 而受苦了 30 年的人,我可以证明这些名称有多么糟糕。(https://opensource.apple.com/source/xnu/xnu-7195.141.2/EXTERNAL_HEADERS/AssertMacros.h.auto.html)
内容来源: microsoft/GSL