mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Changed some recently added //+ usages to #+ and also fixed some //+ usages in some code generators.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//+private
|
||||
#+private
|
||||
package testing
|
||||
|
||||
import win32 "core:sys/windows"
|
||||
|
||||
+1
-1
@@ -4967,7 +4967,7 @@ gb_internal Ast *parse_import_decl(AstFile *f, ImportDeclKind kind) {
|
||||
}
|
||||
|
||||
if (f->in_when_statement) {
|
||||
syntax_error(import_name, "Cannot use 'import' within a 'when' statement. Prefer using the file suffixes (e.g. foo_windows.odin) or '//+build' tags");
|
||||
syntax_error(import_name, "Cannot use 'import' within a 'when' statement. Prefer using the file suffixes (e.g. foo_windows.odin) or '#+build' tags");
|
||||
}
|
||||
|
||||
if (kind != ImportDecl_Standard) {
|
||||
|
||||
@@ -902,7 +902,7 @@ static void verify_error_helpers(ofstream& out) {
|
||||
}
|
||||
|
||||
static void test_core_sys_windows(ofstream& out) {
|
||||
out << "//+build windows" << endl
|
||||
out << "#+build windows" << endl
|
||||
<< "package " << __func__
|
||||
<< " // generated by " << path(__FILE__).filename().replace_extension("").string() << endl
|
||||
<< endl
|
||||
|
||||
@@ -264,7 +264,7 @@ write_test_suite :: proc(example_tests: []Example_Test) {
|
||||
test_runner := strings.builder_make()
|
||||
|
||||
strings.write_string(&test_runner,
|
||||
`//+private
|
||||
`#+private
|
||||
package documentation_verification
|
||||
|
||||
import "core:os"
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
//+build wasm32, wasm64p32
|
||||
#+build wasm32, wasm64p32
|
||||
package vendor_box2d
|
||||
|
||||
@(require) import _ "vendor:libc"
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
//+build wasm32, wasm64p32
|
||||
#+build wasm32, wasm64p32
|
||||
package cgltf
|
||||
|
||||
@(require) import _ "vendor:libc"
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
//+build wasm32, wasm64p32
|
||||
#+build wasm32, wasm64p32
|
||||
package stb_image
|
||||
|
||||
@(require) import _ "vendor:libc"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
//+build wasm32, wasm64p32
|
||||
#+build wasm32, wasm64p32
|
||||
package stb_rect_pack
|
||||
|
||||
@(require) import _ "vendor:libc"
|
||||
|
||||
Reference in New Issue
Block a user