Function cleanExit [src]

Indicate that we are now terminating with a successful exit code. In debug builds, this is a no-op, so that the calling code's cleanup mechanisms are tested and so that external tools that check for resource leaks can be accurate. In release builds, this calls exit(0), and does not return.

Prototype

pub fn cleanExit() void

Source

pub fn cleanExit() void { if (builtin.mode == .Debug) { return; } else { std.debug.lockStdErr(); exit(0); } }