mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Merge pull request #1544 from FancyKillerPanda/build_ignore
Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
//+ignore
|
//+build ignore
|
||||||
package gzip
|
package gzip
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//+ignore
|
//+build ignore
|
||||||
package zlib
|
package zlib
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
An example of how to use `load`.
|
An example of how to use `load`.
|
||||||
*/
|
*/
|
||||||
//+ignore
|
//+build ignore
|
||||||
package png
|
package png
|
||||||
|
|
||||||
import "core:image"
|
import "core:image"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// This is purely for documentation
|
// This is purely for documentation
|
||||||
//+ignore
|
//+build ignore
|
||||||
package intrinsics
|
package intrinsics
|
||||||
|
|
||||||
// Package-Related
|
// Package-Related
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
TODO: Handle +/- Infinity and NaN.
|
TODO: Handle +/- Infinity and NaN.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//+ignore
|
|
||||||
package math_big
|
package math_big
|
||||||
|
|
||||||
import "core:mem"
|
import "core:mem"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
The code started out as an idiomatic source port of libTomMath, which is in the public domain, with thanks.
|
The code started out as an idiomatic source port of libTomMath, which is in the public domain, with thanks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//+ignore
|
//+build ignore
|
||||||
package math_big
|
package math_big
|
||||||
|
|
||||||
import "core:time"
|
import "core:time"
|
||||||
|
|||||||
@@ -5634,6 +5634,8 @@ bool parse_file(Parser *p, AstFile *f) {
|
|||||||
} else {
|
} else {
|
||||||
f->flags |= AstFile_IsLazy;
|
f->flags |= AstFile_IsLazy;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
warning(tok, "Ignoring unknown tag '%.*s'", LIT(lc));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+ignore
|
|
||||||
/*
|
/*
|
||||||
Copyright 2021 Jeroen van Rijn <nom@duclavier.com>.
|
Copyright 2021 Jeroen van Rijn <nom@duclavier.com>.
|
||||||
Made available under Odin's BSD-3 license.
|
Made available under Odin's BSD-3 license.
|
||||||
|
|||||||
Reference in New Issue
Block a user