Browse Source

define __nonnull

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
3859abb7de
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/include/compiler.h

+ 7
- 0
src/include/compiler.h View File

291
  */
291
  */
292
 #define __const __attribute__ (( const ))
292
 #define __const __attribute__ (( const ))
293
 
293
 
294
+/**
295
+ * Declare a function's pointer parameters as non-null - i.e. force
296
+ * compiler to check pointers at compile time and enable possible
297
+ * optimizations based on that fact
298
+ */
299
+#define __nonnull __attribute__ (( nonnull ))
300
+
294
 /**
301
 /**
295
  * Declare a function as used.
302
  * Declare a function as used.
296
  *
303
  *

Loading…
Cancel
Save