From b581da41f82cd1e19701030bf47675b426608adf Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 28 Sep 2016 02:33:32 -0400 Subject: remove compiler directives * add `setFnTest`, `setFnVisible`, `setFnStaticEval`, `setFnNoInline` builtin functions to replace previous directive functionality * add `coldcc` and `nakedcc` as keywords which can be used as part of a function prototype. * `setDebugSafety` builtin can be used to set debug safety features at a per block scope level. * closes #169 --- std/os.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'std/os.zig') diff --git a/std/os.zig b/std/os.zig index 806cc43f33..8def16601d 100644 --- a/std/os.zig +++ b/std/os.zig @@ -27,8 +27,7 @@ pub fn getRandomBytes(buf: []u8) -> %void { } } -#attribute("cold") -pub fn abort() -> unreachable { +pub coldcc fn abort() -> unreachable { switch (@compileVar("os")) { linux, darwin => { system.raise(system.SIGABRT); -- cgit v1.2.3