]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134586: mark `_mi_assert_fail` as `noreturn`, `cold` and `throw` (#134624)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Fri, 30 May 2025 12:44:03 +0000 (14:44 +0200)
committerGitHub <noreply@github.com>
Fri, 30 May 2025 12:44:03 +0000 (14:44 +0200)
commitc600310663277e24607890298e6d9bf7e1d4f584
tree1d21e2f133d10777b6f5669748ec64310dc0bb5d
parentebf6d13567287d04683dab36f52cde7a3c9915e7
gh-134586: mark `_mi_assert_fail` as `noreturn`, `cold` and `throw` (#134624)

We add the following attributes on `_mi_assert_fail` to help IDE introspection:

* `__attribute__((__noreturn__))`
* `__attribute__((cold))`
* `__THROW` (GCC only)
Include/internal/mimalloc/mimalloc/types.h