aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-06 14:07:56 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-06 14:07:56 -0500
commit0a9daeb37e997ff75dcd16d1fc3b4cc143314e85 (patch)
tree05ca7f6b64b1e40fc16a595816f3a632a986617c /lib/std/builtin.zig
parentc30106c90665079f525129e344cc1c13e4db162b (diff)
parentd09bd3d86c4d36ad608a91b36c9a6eb6208c9626 (diff)
downloadzig-0a9daeb37e997ff75dcd16d1fc3b4cc143314e85.tar.gz
zig-0a9daeb37e997ff75dcd16d1fc3b4cc143314e85.zip
Merge branch 'cc-work' of https://github.com/LemonBoy/zig into LemonBoy-cc-work
Diffstat (limited to 'lib/std/builtin.zig')
-rw-r--r--lib/std/builtin.zig32
1 files changed, 20 insertions, 12 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 687e169bbe..9b3be8f424 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -91,6 +91,25 @@ pub const Mode = enum {
ReleaseSmall,
};
+/// This data structure is used by the Zig language code generation and
+/// therefore must be kept in sync with the compiler implementation.
+pub const CallingConvention = enum {
+ Unspecified,
+ C,
+ Cold,
+ Naked,
+ Async,
+ Interrupt,
+ Signal,
+ Stdcall,
+ Fastcall,
+ Vectorcall,
+ Thiscall,
+ APCS,
+ AAPCS,
+ AAPCSVFP,
+};
+
pub const TypeId = @TagType(TypeInfo);
/// This data structure is used by the Zig language code generation and
@@ -255,17 +274,6 @@ pub const TypeInfo = union(enum) {
/// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
- pub const CallingConvention = enum {
- Unspecified,
- C,
- Cold,
- Naked,
- Stdcall,
- Async,
- };
-
- /// This data structure is used by the Zig language code generation and
- /// therefore must be kept in sync with the compiler implementation.
pub const FnArg = struct {
is_generic: bool,
is_noalias: bool,
@@ -416,7 +424,7 @@ pub const CallOptions = struct {
/// therefore must be kept in sync with the compiler implementation.
pub const TestFn = struct {
name: []const u8,
- func: fn()anyerror!void,
+ func: fn () anyerror!void,
};
/// This function type is used by the Zig language code generation and