Bläddra i källkod

define __nonnull

tags/v0.9.3
Holger Lubitz 18 år sedan
förälder
incheckning
3859abb7de
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7
    0
      src/include/compiler.h

+ 7
- 0
src/include/compiler.h Visa fil

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
  *

Laddar…
Avbryt
Spara