36 lines
448 B
Plaintext
36 lines
448 B
Plaintext
const Os = enum{
|
|
linux,
|
|
macos,
|
|
windows,
|
|
freestanding,
|
|
};
|
|
|
|
const Cpu = enum{
|
|
x86_64,
|
|
aarch64,
|
|
};
|
|
|
|
const Abi = enum{
|
|
none,
|
|
gnu, msvc,
|
|
};
|
|
|
|
const CallingConvention = enum{
|
|
c,
|
|
system_v,
|
|
};
|
|
|
|
const PanicReason = enum{
|
|
integer_overflow,
|
|
null_unwrap,
|
|
};
|
|
|
|
const panic = fn (reason: PanicReason) noreturn{
|
|
#trap();
|
|
}
|
|
|
|
const TestFunction = struct{
|
|
name: []const u8,
|
|
function: &const fn () *!void,
|
|
};
|