Use gcc function attributes for better error checking

git-svn-id: svn://svn.cc65.org/cc65/trunk@210 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-07-27 20:33:33 +00:00
parent c4e957b921
commit 3bcbcd9474
3 changed files with 70 additions and 3 deletions

View File

@@ -38,14 +38,18 @@
#include "attrib.h"
/*****************************************************************************/
/* Code */
/*****************************************************************************/
void AbEnd (const char* Format, ...);
/* Print a message preceeded by the program name and terminate the program
void AbEnd (const char* Format, ...) attribute ((format (printf, 1, 2)));
/* Print a message preceeded by the program name and terminate the program
* with an error exit code.
*/