We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e02c3d commit 208758bCopy full SHA for 208758b
src/macros.rs
@@ -86,7 +86,7 @@ macro_rules! mem_info {
86
// Using macro to implement join many wrapper
87
#[macro_export]
88
macro_rules! join_many {
89
- [$dim: expr; $($x:ident),+] => {
+ [$dim: expr; $($x:expr),+] => {
90
{
91
let mut temp_vec = Vec::new();
92
$(
@@ -110,7 +110,7 @@ macro_rules! join_many {
110
///
111
112
macro_rules! af_print {
113
- [$msg: expr, $x: ident] => {
+ [$msg: expr, $x: expr] => {
114
115
print_gen(String::from($msg), &$x, Some(4));
116
}
@@ -120,7 +120,7 @@ macro_rules! af_print {
120
/// Evaluate arbitrary number of arrays
121
122
macro_rules! eval {
123
- [$($x:ident),+] => {
+ [$($x:expr),+] => {
124
125
126
0 commit comments