From afdfef4b15e045b9cb5a4391f81e5f8bbf20ab68 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 4 Dec 2008 16:36:43 +0000 Subject: docs: Add description of BUILD_BUG_ON(). Signed-off-by: Keir Fraser --- docs/misc/xen-error-handling.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/misc/xen-error-handling.txt') diff --git a/docs/misc/xen-error-handling.txt b/docs/misc/xen-error-handling.txt index 61cc67261b..7728787092 100644 --- a/docs/misc/xen-error-handling.txt +++ b/docs/misc/xen-error-handling.txt @@ -79,3 +79,10 @@ interesting. A possible approach to dealing with boot-time errors, rather than crashing the hypervisor. It's particularly appropriate when parsing 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. -- cgit v1.2.3