diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-17 19:10:49 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-17 19:10:49 -0700 |
| commit | 40cbf525f7d7b17b0728f835e6f68efe3c2eabf6 (patch) | |
| tree | 4533eaccd46b97525f0f9c744216d9353cc2a475 /src/value.zig | |
| parent | e5dac0a0b391f227605e496a09f32b453ac3280d (diff) | |
| download | zig-40cbf525f7d7b17b0728f835e6f68efe3c2eabf6.tar.gz zig-40cbf525f7d7b17b0728f835e6f68efe3c2eabf6.zip | |
stage2: implement coercion from null to C pointer
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/value.zig b/src/value.zig index 030ee8f783..1ae5351f54 100644 --- a/src/value.zig +++ b/src/value.zig @@ -2824,6 +2824,7 @@ pub const Value = extern union { pub const negative_one: Value = .{ .ptr_otherwise = &negative_one_payload.base }; pub const undef = initTag(.undef); pub const @"void" = initTag(.void_value); + pub const @"null" = initTag(.null_value); }; var negative_one_payload: Value.Payload.I64 = .{ |
