Преглед на файлове

define __nonnull

tags/v0.9.3
Holger Lubitz преди 18 години
родител
ревизия
e3d10ac673
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7
    0
      src/include/compiler.h

+ 7
- 0
src/include/compiler.h Целия файл

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…
Отказ
Запис