Add support for toggleable warnings

This commit is contained in:
ISSOtm
2019-11-18 09:23:32 +01:00
parent 58556f91f7
commit 191ee4ba1f
20 changed files with 362 additions and 131 deletions

View File

@@ -20,6 +20,7 @@
#include "asm/rpn.h"
#include "asm/symbol.h"
#include "asm/symbol.h"
#include "asm/warning.h"
#include "helpers.h"
@@ -126,7 +127,7 @@ static int32_t ascii2bin(char *s)
* the Game Boy tile width, produces a nonsensical result.
*/
if (size > 8) {
warning("Graphics constant '%s' is too long",
warning(WARNING_LARGE_CONSTANT, "Graphics constant '%s' is too long",
start);
}
} else {
@@ -143,7 +144,7 @@ static int32_t ascii2bin(char *s)
}
if (overflow)
warning("Integer constant '%s' is too large",
warning(WARNING_LARGE_CONSTANT, "Integer constant '%s' is too large",
start);
}