Fix build of documentation in libstd

Ensure we've always got a macro defined!

Closes #603
This commit is contained in:
Alex Crichton 2018-11-27 21:57:36 -08:00 committed by gnzlbg
parent af99d5984c
commit 2ededbb71f

View file

@ -39,6 +39,13 @@ use stdsimd_test::assert_instr;
#[inline(always)]
#[rustc_args_required_const(0)]
pub unsafe fn __breakpoint(val: i32) {
// Ensure that this compiles correctly on non-arm architectures, so libstd
// doc builds work. The proper macro will shadow this definition below.
#[allow(unused_macros)]
macro_rules! call {
($e:expr) => {()}
}
#[cfg(target_arch = "arm")]
macro_rules! call {
($imm8:expr) => {