summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-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.