Преглед изворни кода

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
  *

Loading…
Откажи
Сачувај