/*****************************************************************************/
/* */
-/* error.c */
+/* error.c */
/* */
-/* Error handling for the ca65 macroassembler */
+/* Error handling for the ca65 macroassembler */
/* */
/* */
/* */
-/* (C) 1998-2011, Ullrich von Bassewitz */
+/* (C) 1998-2012, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/*****************************************************************************/
-/* Data */
+/* Data */
/*****************************************************************************/
/* Warning level */
-unsigned WarnLevel = 1;
+unsigned WarnLevel = 1;
/* Statistics */
-unsigned ErrorCount = 0;
-unsigned WarningCount = 0;
+unsigned ErrorCount = 0;
+unsigned WarningCount = 0;
/* Maximum number of additional notifications */
-#define MAX_NOTES 6
+#define MAX_NOTES 8
const char* Msg;
switch (GetLineInfoType (LI)) {
+ case LI_TYPE_ASM:
+ Msg = "Expanded from here";
+ break;
+
case LI_TYPE_EXT:
Msg = "Assembler code generated from this line";
break;
Msg = "Macro was defined here";
break;
+ case LI_TYPE_MACPARAM:
+ Msg = "Macro parameter came from here";
+ break;
+
default:
/* No output */
Msg = 0;
/*****************************************************************************/
-/* Warnings */
+/* Warnings */
/*****************************************************************************/
/*****************************************************************************/
-/* Errors */
+/* Errors */
/*****************************************************************************/
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
exit (EXIT_FAILURE);
}
-
-
-