#Warn v0.1.0

Source
Emits a compilation warning.

Package: Rux

Signature

intrinsic func #Warn(message: Slice<char8>);

Description

#Warn reports message as a compile-time warning and lets compilation continue. Use it to flag a questionable but permitted configuration — a deprecated path, an untested target — without failing the build the way #Error does.

Example

import Core::{ #target, #Warn };

when #target.arch {
    .X86_64 => { /* optimized path */ },
    else => #Warn("using the portable fallback for this architecture")
}

See also