git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2553
4a8a32a2-be11-0410-ad9d-
d568d2c75423
*/
#include <stdio.h>
+#include <stdlib.h>
#include "SDCCerr.h"
va_end( marker );
}
+
+/*
+-------------------------------------------------------------------------------
+fatal - Output a standard eror message with variable number of arguements and
+ call exit()
+-------------------------------------------------------------------------------
+*/
+void fatal (int exitCode, int errNum, ... )
+{
+ va_list marker;
+ va_start(marker,errNum);
+ vwerror(errNum, marker);
+ va_end( marker );
+
+ exit(exitCode);
+}
void werror (int errNum, ... ) ;
+/*
+-------------------------------------------------------------------------------
+fatal - Output a standard eror message with variable number of arguements and
+ call exit()
+-------------------------------------------------------------------------------
+*/
+
+void fatal (int exitCode, int errNum, ... ) ;
+
#endif