From 32febc5c9e6877e4134bed35a9a0089bf85642b1 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Tue, 1 Nov 2022 00:29:29 -0500 Subject: [PATCH] export the strict assert macros uniformly --- wgpu-core/src/assertions.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wgpu-core/src/assertions.rs b/wgpu-core/src/assertions.rs index 95b6ac78d..fb9314a3c 100644 --- a/wgpu-core/src/assertions.rs +++ b/wgpu-core/src/assertions.rs @@ -12,6 +12,7 @@ //! in both debug and release builds. #[cfg(feature = "strict_asserts")] +#[macro_export] macro_rules! strict_assert { ( $( $arg:tt )* ) => { assert!( $( $arg )* ) @@ -19,6 +20,7 @@ macro_rules! strict_assert { } #[cfg(feature = "strict_asserts")] +#[macro_export] macro_rules! strict_assert_eq { ( $( $arg:tt )* ) => { assert_eq!( $( $arg )* ) @@ -26,6 +28,7 @@ macro_rules! strict_assert_eq { } #[cfg(feature = "strict_asserts")] +#[macro_export] macro_rules! strict_assert_ne { ( $( $arg:tt )* ) => { assert_ne!( $( $arg )* ) @@ -41,6 +44,7 @@ macro_rules! strict_assert { } #[cfg(not(feature = "strict_asserts"))] +#[macro_export] macro_rules! strict_assert_eq { ( $( $arg:tt )* ) => { debug_assert_eq!( $( $arg )* ) @@ -48,6 +52,7 @@ macro_rules! strict_assert_eq { } #[cfg(not(feature = "strict_asserts"))] +#[macro_export] macro_rules! strict_assert_ne { ( $( $arg:tt )* ) => { debug_assert_ne!( $( $arg )* )