diff options
| author | Holger Lubitz | 2007-08-02 01:01:01 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-08-19 22:51:17 +0200 |
| commit | 3859abb7de806d17e05ddd93c01f3a6535cf618d (patch) | |
| tree | 1a5634363a30aaf7d6fe8c983daedd076cfedc60 /src/include/compiler.h | |
| parent | define __pure and __const (diff) | |
| download | ipxe-3859abb7de806d17e05ddd93c01f3a6535cf618d.tar.gz ipxe-3859abb7de806d17e05ddd93c01f3a6535cf618d.tar.xz ipxe-3859abb7de806d17e05ddd93c01f3a6535cf618d.zip | |
define __nonnull
Diffstat (limited to 'src/include/compiler.h')
| -rw-r--r-- | src/include/compiler.h | 7 |
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. |
