Browse Source

attributes interfered with doxygen

Thomas Buck 10 years ago
parent
commit
63fd9fe292
6 changed files with 8 additions and 17 deletions
  1. 2
    4
      include/GLString.h
  2. 1
    2
      include/OpenRaider.h
  3. 1
    2
      include/System.h
  4. 1
    2
      include/Texture.h
  5. 2
    4
      include/TombRaider.h
  6. 1
    3
      include/tga.h

+ 2
- 4
include/GLString.h View File

@@ -74,8 +74,7 @@ public:
74 74
      * \param string valid string id
75 75
      * \param s format string and args like for printf
76 76
      */
77
-    __attribute__((format(printf, 3, 4)))
78
-    void SetString(unsigned int string, const char *s, ...);
77
+    void SetString(unsigned int string, const char *s, ...) __attribute__((format(printf, 3, 4)));
79 78
 
80 79
     /*!
81 80
      * \brief Sets default text scaling
@@ -90,8 +89,7 @@ public:
90 89
      * \param string valid format string with args like for printf
91 90
      * \returns 0 on success, -1 on invalid string, -2 on full string list
92 91
      */
93
-    __attribute__((format(printf, 4, 5)))
94
-    int glPrintf(int x, int y, const char *string, ...);
92
+    int glPrintf(int x, int y, const char *string, ...) __attribute__((format(printf, 4, 5)));
95 93
 
96 94
     /*!
97 95
      * \brief Renders strings over GL scene.

+ 1
- 2
include/OpenRaider.h View File

@@ -130,8 +130,7 @@ public:
130 130
      * \param dump_stdout if true, also print to stdout
131 131
      * \param format printf() style format string
132 132
      */
133
-    __attribute__((format(printf, 3, 4)))
134
-    void print(bool dump_stdout, const char *format, ...);
133
+    void print(bool dump_stdout, const char *format, ...) __attribute__((format(printf, 3, 4)));
135 134
 
136 135
 protected:
137 136
 

+ 1
- 2
include/System.h View File

@@ -70,8 +70,7 @@ public:
70 70
      * \param string Format string like for printf
71 71
      * \returns string in a buffer
72 72
      */
73
-    __attribute__((format(printf, 1, 2)))
74
-    static char *bufferString(const char *string, ...);
73
+    static char *bufferString(const char *string, ...) __attribute__((format(printf, 1, 2)));
75 74
 
76 75
     /*!
77 76
      * \brief Expansion of unix home enviroment char.

+ 1
- 2
include/Texture.h View File

@@ -249,8 +249,7 @@ private:
249 249
 
250 250
 // Experimental testing
251 251
 
252
-__attribute__((format(printf, 3, 4)))
253
-void bufferedPrintf(char *string, unsigned int len, char *s, ...);
252
+void bufferedPrintf(char *string, unsigned int len, char *s, ...) __attribute__((format(printf, 3, 4)));
254 253
 
255 254
 void glPrint3d(float x, float y, float z,
256 255
                 float pitch, float yaw, float roll,

+ 2
- 4
include/TombRaider.h View File

@@ -2238,11 +2238,9 @@ private:
2238 2238
      * Mongoose - Created
2239 2239
      ------------------------------------------------------*/
2240 2240
 
2241
-__attribute__((format(printf, 3, 4)))
2242
-    void print(const char *methodName, const char *s, ...) ;
2241
+    void print(const char *methodName, const char *s, ...) __attribute__((format(printf, 3, 4)));
2243 2242
 
2244
-__attribute__((format(printf, 3, 4)))
2245
-    void printDebug(const char *methodName, const char *s, ...);
2243
+    void printDebug(const char *methodName, const char *s, ...) __attribute__((format(printf, 3, 4)));
2246 2244
 
2247 2245
 
2248 2246
     ////////////////////////////////////////////////////////////

+ 1
- 3
include/tga.h View File

@@ -83,10 +83,8 @@ int tga_save(FILE *f, unsigned char *image,
83 83
  * \param s format string for file path/name
84 84
  * \returns 0 on success, else error condition
85 85
  */
86
-__attribute__((format(printf, 5, 6)))
87 86
 int tga_save_filename(unsigned char *image,
88 87
         unsigned int width, unsigned int height,
89
-        char type,
90
-        char *s, ...);
88
+        char type, char *s, ...) __attribute__((format(printf, 5, 6)));
91 89
 
92 90
 #endif

Loading…
Cancel
Save