| ... | @@ -8041,7 +8041,7 @@ pub const CallModifier = enum { | ... | @@ -8041,7 +8041,7 @@ pub const CallModifier = enum { |
| 8041 | {#header_close#} | 8041 | {#header_close#} |
| 8042 | | 8042 | |
| 8043 | {#header_open|@cDefine#} | 8043 | {#header_open|@cDefine#} |
| 8044 | <pre>{#syntax#}@cDefine(comptime name: []u8, value) void{#endsyntax#}</pre> | 8044 | <pre>{#syntax#}@cDefine(comptime name: []const u8, value) void{#endsyntax#}</pre> |
| 8045 | <p> | 8045 | <p> |
| 8046 | This function can only occur inside {#syntax#}@cImport{#endsyntax#}. | 8046 | This function can only occur inside {#syntax#}@cImport{#endsyntax#}. |
| 8047 | </p> | 8047 | </p> |
| ... | @@ -8085,7 +8085,7 @@ pub const CallModifier = enum { | ... | @@ -8085,7 +8085,7 @@ pub const CallModifier = enum { |
| 8085 | {#see_also|Import from C Header File|@cInclude|@cDefine|@cUndef#} | 8085 | {#see_also|Import from C Header File|@cInclude|@cDefine|@cUndef#} |
| 8086 | {#header_close#} | 8086 | {#header_close#} |
| 8087 | {#header_open|@cInclude#} | 8087 | {#header_open|@cInclude#} |
| 8088 | <pre>{#syntax#}@cInclude(comptime path: []u8) void{#endsyntax#}</pre> | 8088 | <pre>{#syntax#}@cInclude(comptime path: []const u8) void{#endsyntax#}</pre> |
| 8089 | <p> | 8089 | <p> |
| 8090 | This function can only occur inside {#syntax#}@cImport{#endsyntax#}. | 8090 | This function can only occur inside {#syntax#}@cImport{#endsyntax#}. |
| 8091 | </p> | 8091 | </p> |
| ... | @@ -8176,7 +8176,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val | ... | @@ -8176,7 +8176,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val |
| 8176 | {#header_close#} | 8176 | {#header_close#} |
| 8177 | | 8177 | |
| 8178 | {#header_open|@compileError#} | 8178 | {#header_open|@compileError#} |
| 8179 | <pre>{#syntax#}@compileError(comptime msg: []u8) noreturn{#endsyntax#}</pre> | 8179 | <pre>{#syntax#}@compileError(comptime msg: []const u8) noreturn{#endsyntax#}</pre> |
| 8180 | <p> | 8180 | <p> |
| 8181 | This function, when semantically analyzed, causes a compile error with the | 8181 | This function, when semantically analyzed, causes a compile error with the |
| 8182 | message {#syntax#}msg{#endsyntax#}. | 8182 | message {#syntax#}msg{#endsyntax#}. |
| ... | @@ -8267,7 +8267,7 @@ test "main" { | ... | @@ -8267,7 +8267,7 @@ test "main" { |
| 8267 | {#header_close#} | 8267 | {#header_close#} |
| 8268 | | 8268 | |
| 8269 | {#header_open|@cUndef#} | 8269 | {#header_open|@cUndef#} |
| 8270 | <pre>{#syntax#}@cUndef(comptime name: []u8) void{#endsyntax#}</pre> | 8270 | <pre>{#syntax#}@cUndef(comptime name: []const u8) void{#endsyntax#}</pre> |
| 8271 | <p> | 8271 | <p> |
| 8272 | This function can only occur inside {#syntax#}@cImport{#endsyntax#}. | 8272 | This function can only occur inside {#syntax#}@cImport{#endsyntax#}. |
| 8273 | </p> | 8273 | </p> |
| ... | @@ -8607,7 +8607,7 @@ test "@hasDecl" { | ... | @@ -8607,7 +8607,7 @@ test "@hasDecl" { |
| 8607 | {#header_close#} | 8607 | {#header_close#} |
| 8608 | | 8608 | |
| 8609 | {#header_open|@import#} | 8609 | {#header_open|@import#} |
| 8610 | <pre>{#syntax#}@import(comptime path: []u8) type{#endsyntax#}</pre> | 8610 | <pre>{#syntax#}@import(comptime path: []const u8) type{#endsyntax#}</pre> |
| 8611 | <p> | 8611 | <p> |
| 8612 | This function finds a zig file corresponding to {#syntax#}path{#endsyntax#} and adds it to the build, | 8612 | This function finds a zig file corresponding to {#syntax#}path{#endsyntax#} and adds it to the build, |
| 8613 | if it is not already added. | 8613 | if it is not already added. |