BUILD_BUG_ON_MSG(9)
π BUILD_BUG_ON_MSG(9) β bestie edition β¨
okay so welcome to BUILD_BUG_ON_MSG(9) from the Kernel API Manual π this one is short and iconic: it's giving βbreak compile if a condition is true, and emit the supplied error messageβ energy. no cap.
πΈ NAME πΈ
BUILD_BUG_ON_MSG β break compile if a condition is true & emit the supplied error message π₯
π SYNOPSIS π
the whole call is literally:
BUILD_BUG_ON_MSG (cond , msg );
π¦ ARGUMENTS π¦
condβ the condition which the compiler should know is false π«Άmsgβ build-time error message β¨
π DESCRIPTION π
see BUILD_BUG_ON for the description, bestie β that's where the full tea is π΅
π₯ SEE ALSO π₯
- Kernel file
./tools/include/linux/build_bug.hπ BUILD_BUG_ON(9)BUILD_BUG(9)static_assert(9)
okay bye, this page's source/version is ./tools/include/linux, its date is October 2026, and its title is BUILD_BUG_ON_MSG(9) β mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms