Kaynağa Gözat

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

Karl Zylinski 11 ay önce
ebeveyn
işleme
29fedc1808

+ 1 - 1
core/testing/runner_windows.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package testing
 
 import win32 "core:sys/windows"

+ 1 - 1
src/parser.cpp

@@ -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) {

+ 1 - 1
tests/core/sys/windows/win32gen/win32gen.cpp

@@ -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

+ 1 - 1
tests/documentation/documentation_tester.odin

@@ -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"

+ 1 - 1
vendor/box2d/box2d_wasm.odin

@@ -1,4 +1,4 @@
-//+build wasm32, wasm64p32
+#+build wasm32, wasm64p32
 package vendor_box2d
 
 @(require) import _ "vendor:libc"

+ 1 - 1
vendor/cgltf/cgltf_wasm.odin

@@ -1,4 +1,4 @@
-//+build wasm32, wasm64p32
+#+build wasm32, wasm64p32
 package cgltf
 
 @(require) import _ "vendor:libc"

+ 1 - 1
vendor/stb/image/stb_image_wasm.odin

@@ -1,4 +1,4 @@
-//+build wasm32, wasm64p32
+#+build wasm32, wasm64p32
 package stb_image
 
 @(require) import _ "vendor:libc"

+ 1 - 1
vendor/stb/rect_pack/stb_rect_pack_wasm.odin

@@ -1,4 +1,4 @@
-//+build wasm32, wasm64p32
+#+build wasm32, wasm64p32
 package stb_rect_pack
 
 @(require) import _ "vendor:libc"