Changed some recently added //+ usages to #+ and also fixed some //+ usages in some code generators.

This commit is contained in:
Karl Zylinski
2024-09-17 19:39:48 +02:00
parent 093ade0504
commit 29fedc1808
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
//+private #+private
package testing package testing
import win32 "core:sys/windows" import win32 "core:sys/windows"
+1 -1
View File
@@ -4967,7 +4967,7 @@ gb_internal Ast *parse_import_decl(AstFile *f, ImportDeclKind kind) {
} }
if (f->in_when_statement) { 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) { if (kind != ImportDecl_Standard) {
+1 -1
View File
@@ -902,7 +902,7 @@ static void verify_error_helpers(ofstream& out) {
} }
static void test_core_sys_windows(ofstream& out) { static void test_core_sys_windows(ofstream& out) {
out << "//+build windows" << endl out << "#+build windows" << endl
<< "package " << __func__ << "package " << __func__
<< " // generated by " << path(__FILE__).filename().replace_extension("").string() << endl << " // generated by " << path(__FILE__).filename().replace_extension("").string() << endl
<< endl << endl
@@ -264,7 +264,7 @@ write_test_suite :: proc(example_tests: []Example_Test) {
test_runner := strings.builder_make() test_runner := strings.builder_make()
strings.write_string(&test_runner, strings.write_string(&test_runner,
`//+private `#+private
package documentation_verification package documentation_verification
import "core:os" import "core:os"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build wasm32, wasm64p32 #+build wasm32, wasm64p32
package vendor_box2d package vendor_box2d
@(require) import _ "vendor:libc" @(require) import _ "vendor:libc"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build wasm32, wasm64p32 #+build wasm32, wasm64p32
package cgltf package cgltf
@(require) import _ "vendor:libc" @(require) import _ "vendor:libc"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build wasm32, wasm64p32 #+build wasm32, wasm64p32
package stb_image package stb_image
@(require) import _ "vendor:libc" @(require) import _ "vendor:libc"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build wasm32, wasm64p32 #+build wasm32, wasm64p32
package stb_rect_pack package stb_rect_pack
@(require) import _ "vendor:libc" @(require) import _ "vendor:libc"