mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
docs: Add description of BUILD_BUG_ON().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
7e3e35eed6
commit
afdfef4b15
1 file changed
+7
@@ -79,3 +79,10 @@ interesting.
|
|||||||
A possible approach to dealing with boot-time errors, rather than
|
A possible approach to dealing with boot-time errors, rather than
|
||||||
crashing the hypervisor. It's particularly appropriate when parsing
|
crashing the hypervisor. It's particularly appropriate when parsing
|
||||||
non-critical BIOS tables and detecting extended hardware features.
|
non-critical BIOS tables and detecting extended hardware features.
|
||||||
|
|
||||||
|
|
||||||
|
7. BUILD_BUG_ON()
|
||||||
|
-----------------
|
||||||
|
Useful for assertions which can be evaluated at compile time. For
|
||||||
|
example, making explicit assumptions about size and alignment of C
|
||||||
|
structures.
|
||||||