1
0
forked from mirrors/0ad

Add more vararg error-checking annotation

This was SVN commit r7073.
This commit is contained in:
Ykkrosh
2009-08-04 16:08:41 +00:00
parent d83945e1e7
commit 4a4269824b
8 changed files with 21 additions and 14 deletions
+7
View File
@@ -211,4 +211,11 @@ private:\
// TODO: support _Printf_format_string_ for VC9+
#endif
// annotate vararg functions that expect to end with an explicit NULL
#if GCC_VERSION
# define SENTINEL_ARG __attribute__ ((sentinel))
#else
# define SENTINEL_ARG
#endif
#endif // #ifndef INCLUDED_CODE_ANNOTATION