浏览代码

Hide __attribute__ from doxygen

tags/v0.9.3
Michael Brown 19 年前
父节点
当前提交
75a90cb143
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11
    1
      src/include/compiler.h

+ 11
- 1
src/include/compiler.h 查看文件

@@ -1,7 +1,17 @@
1 1
 #ifndef COMPILER_H
2 2
 #define COMPILER_H
3 3
 
4
-/* We export the symbol obj_OBJECT (OBJECT is defined on command-line)
4
+/*
5
+ * Doxygen can't cope with some of the more esoteric areas of C, so we
6
+ * make its life simpler.
7
+ *
8
+ */
9
+#ifdef DOXYGEN
10
+#define __attribute__(...)
11
+#endif
12
+
13
+/*
14
+ * We export the symbol obj_OBJECT (OBJECT is defined on command-line)
5 15
  * as a global symbol, so that the linker can drag in selected object
6 16
  * files from the library using -u obj_OBJECT.
7 17
  *

正在加载...
取消
保存