File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ macro_rules! mem_info {
86
86
// Using macro to implement join many wrapper
87
87
#[ macro_export]
88
88
macro_rules! join_many {
89
- [ $dim: expr; $( $x: ident ) ,+] => {
89
+ [ $dim: expr; $( $x: expr ) ,+] => {
90
90
{
91
91
let mut temp_vec = Vec :: new( ) ;
92
92
$(
@@ -110,7 +110,7 @@ macro_rules! join_many {
110
110
///
111
111
#[ macro_export]
112
112
macro_rules! af_print {
113
- [ $msg: expr, $x: ident ] => {
113
+ [ $msg: expr, $x: expr ] => {
114
114
{
115
115
print_gen( String :: from( $msg) , & $x, Some ( 4 ) ) ;
116
116
}
@@ -120,7 +120,7 @@ macro_rules! af_print {
120
120
/// Evaluate arbitrary number of arrays
121
121
#[ macro_export]
122
122
macro_rules! eval {
123
- [ $( $x: ident ) ,+] => {
123
+ [ $( $x: expr ) ,+] => {
124
124
{
125
125
let mut temp_vec = Vec :: new( ) ;
126
126
$(
You can’t perform that action at this time.
0 commit comments