mirror of
https://github.com/microsoft/GSL.git
synced 2025-02-20 08:28:09 -05:00
* GSL_LIKELY/_UNLIKELY always contextually convert their argument to bool. * Add macro GSL_ASSUME(cond) to inform the optimizer that the predicate cond must hold. * Reimplement Expects & Ensures as expressions for flexibility and correctness. (Think about "if (cond1) Expects(cond2); else goto fail;") * Expects and Ensures GSL_ASSUME their predicate when GSL_UNENFORCED_ON_CONTRACT_VIOLATION is defined.