summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Lubitz2007-08-02 01:01:01 +0200
committerHolger Lubitz2007-08-19 22:51:17 +0200
commit3859abb7de806d17e05ddd93c01f3a6535cf618d (patch)
tree1a5634363a30aaf7d6fe8c983daedd076cfedc60 /src
parentdefine __pure and __const (diff)
downloadipxe-3859abb7de806d17e05ddd93c01f3a6535cf618d.tar.gz
ipxe-3859abb7de806d17e05ddd93c01f3a6535cf618d.tar.xz
ipxe-3859abb7de806d17e05ddd93c01f3a6535cf618d.zip
define __nonnull
Diffstat (limited to 'src')
-rw-r--r--src/include/compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index 8d76ac474..d680ae89e 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -292,6 +292,13 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
#define __const __attribute__ (( const ))
/**
+ * Declare a function's pointer parameters as non-null - i.e. force
+ * compiler to check pointers at compile time and enable possible
+ * optimizations based on that fact
+ */
+#define __nonnull __attribute__ (( nonnull ))
+
+/**
* Declare a function as used.
*
* Necessary only if the function is called only from assembler code.