Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmxmlrpc / casprintf.h
blobeab336a263c2241c9efc5f92ea2fe0399f795add
1 #ifndef CASPRINTF_H_INCLUDED
3 /* GNU_PRINTF_ATTR lets the GNU compiler check pm_message() and pm_error()
4 calls to be sure the arguments match the format string, thus preventing
5 runtime segmentation faults and incorrect messages.
6 */
7 #ifdef __GNUC__
8 #define GNU_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b)))
9 #else
10 #define GNU_PRINTF_ATTR(a,b)
11 #endif
13 void GNU_PRINTF_ATTR(2,3)
14 casprintf(const char ** const retvalP, const char * const fmt, ...);
16 void
17 strfree(const char * const string);
19 #endif