attributes: a target the program does not have at all (an @Ref registry, an @Tint / @OneOf constant) is a warning and "unresolved" in the schema, not an error - a package names the game's registry without importing it; a name of another kind is still an error; reseeded
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
dacc0f7280
commit
d82dc3162f
10 changed files with 83635 additions and 82878 deletions
|
|
@ -138,6 +138,16 @@ function perr_at(file: pointer, line: int, col: int, msg: pointer) -> void {
|
|||
g_dg_errors += 1
|
||||
}
|
||||
}
|
||||
# a warning: kept in the JSON array, or said on stderr; the build goes on
|
||||
function pwarn_at(file: pointer, line: int, col: int, msg: pointer) -> void {
|
||||
var f = file
|
||||
if f == null { f = "" }
|
||||
if g_diag_json { diag_add(f, line, col, "warning", msg) }
|
||||
else {
|
||||
let m = `{f}:{itoa(line)}: warning: {msg}\n`
|
||||
file_write(file_stderr(), m, len(m))
|
||||
}
|
||||
}
|
||||
function diag_stop_if_errors() -> void {
|
||||
if g_dg_errors > 0 { diag_exit(1) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue