Sign in
fuchsia
/
fuchsia
/
b913ed1479780eeb0de1e6d2e9d0ed17267964af
/
.
/
third_party
/
rust_crates
/
vendor
/
const-oid
/
src
/
macros.rs
blob: 447a9f25b7fbac3e54ec9bf7e3319139803c492d [
file
] [
log
] [
blame
]
//! Macro definitions
/// Constant panicking assertion.
// TODO(tarcieri): use const panic when stable.
// See: https://github.com/rust-lang/rust/issues/51999
macro_rules
!
const_assert
{
(
$bool
:
expr
,
$msg
:
expr
)
=>
{
[
$msg
][!
$bool
as
usize
]
};
}