浏览代码

define malloc attribute

tags/v0.9.3
Holger Lubitz 18 年前
父节点
当前提交
2220e1a676
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      src/include/compiler.h

+ 6
- 0
src/include/compiler.h 查看文件

298
  */
298
  */
299
 #define __nonnull __attribute__ (( nonnull ))
299
 #define __nonnull __attribute__ (( nonnull ))
300
 
300
 
301
+/**
302
+ * Declare a pointer returned by a function as a unique memory address
303
+ * as returned by malloc-type functions.
304
+ */
305
+#define __malloc __attribute__ (( malloc ))
306
+
301
 /**
307
 /**
302
  * Declare a function as used.
308
  * Declare a function as used.
303
  *
309
  *

正在加载...
取消
保存