aboutsummaryrefslogtreecommitdiff
path: root/std/os.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-09-28 02:33:32 -0400
committerAndrew Kelley <superjoe30@gmail.com>2016-09-28 02:33:32 -0400
commitb581da41f82cd1e19701030bf47675b426608adf (patch)
treebbfebb52858935e2e91ffabd8b0c2b02fb58ca27 /std/os.zig
parente5fd8efcb60cd0223a7dd5e5825d3b9efc006c2a (diff)
downloadzig-b581da41f82cd1e19701030bf47675b426608adf.tar.gz
zig-b581da41f82cd1e19701030bf47675b426608adf.zip
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
Diffstat (limited to 'std/os.zig')
-rw-r--r--std/os.zig3
1 files changed, 1 insertions, 2 deletions
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);