New functions LIWarning and LIError.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3961 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -96,6 +96,17 @@ void Warning (const char* Format, ...)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void LIWarning (const LineInfo* LI, const char* Format, ...)
|
||||||
|
/* Print a warning message with the line info given explicitly */
|
||||||
|
{
|
||||||
|
va_list ap;
|
||||||
|
va_start (ap, Format);
|
||||||
|
IntWarning (GetInputName (LI), GetInputLine (LI), Format, ap);
|
||||||
|
va_end (ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void PPWarning (const char* Format, ...)
|
void PPWarning (const char* Format, ...)
|
||||||
/* Print warning message. For use within the preprocessor. */
|
/* Print warning message. For use within the preprocessor. */
|
||||||
{
|
{
|
||||||
@@ -136,6 +147,17 @@ void Error (const char* Format, ...)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void LIError (const LineInfo* LI, const char* Format, ...)
|
||||||
|
/* Print an error message with the line info given explicitly */
|
||||||
|
{
|
||||||
|
va_list ap;
|
||||||
|
va_start (ap, Format);
|
||||||
|
IntError (GetInputName (LI), GetInputLine (LI), Format, ap);
|
||||||
|
va_end (ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void PPError (const char* Format, ...)
|
void PPError (const char* Format, ...)
|
||||||
/* Print an error message. For use within the preprocessor. */
|
/* Print an error message. For use within the preprocessor. */
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,6 +41,9 @@
|
|||||||
/* common */
|
/* common */
|
||||||
#include "attrib.h"
|
#include "attrib.h"
|
||||||
|
|
||||||
|
/* cc65 */
|
||||||
|
#include "lineinfo.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
@@ -64,12 +67,18 @@ extern unsigned WarningCount;
|
|||||||
void Warning (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
void Warning (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
||||||
/* Print warning message. */
|
/* Print warning message. */
|
||||||
|
|
||||||
|
void LIWarning (const LineInfo* LI, const char* Format, ...) attribute ((format (printf, 2, 3)));
|
||||||
|
/* Print a warning message with the line info given explicitly */
|
||||||
|
|
||||||
void PPWarning (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
void PPWarning (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
||||||
/* Print warning message. For use within the preprocessor. */
|
/* Print warning message. For use within the preprocessor. */
|
||||||
|
|
||||||
void Error (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
void Error (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
||||||
/* Print an error message */
|
/* Print an error message */
|
||||||
|
|
||||||
|
void LIError (const LineInfo* LI, const char* Format, ...) attribute ((format (printf, 2, 3)));
|
||||||
|
/* Print an error message with the line info given explicitly */
|
||||||
|
|
||||||
void PPError (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
void PPError (const char* Format, ...) attribute ((format (printf, 1, 2)));
|
||||||
/* Print an error message. For use within the preprocessor. */
|
/* Print an error message. For use within the preprocessor. */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user