Skip to content

Commit

Permalink
Update macros.rs
Browse files Browse the repository at this point in the history
Updated macros af_print, join_many and eval to work with expressions instead of identifiers.
  • Loading branch information
nlsnightmare authored and 9prady9 committed May 16, 2019
1 parent 1e02c3d commit 208758b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ macro_rules! mem_info {
// Using macro to implement join many wrapper
#[macro_export]
macro_rules! join_many {
[$dim: expr; $($x:ident),+] => {
[$dim: expr; $($x:expr),+] => {
{
let mut temp_vec = Vec::new();
$(
Expand All @@ -110,7 +110,7 @@ macro_rules! join_many {
///
#[macro_export]
macro_rules! af_print {
[$msg: expr, $x: ident] => {
[$msg: expr, $x: expr] => {
{
print_gen(String::from($msg), &$x, Some(4));
}
Expand All @@ -120,7 +120,7 @@ macro_rules! af_print {
/// Evaluate arbitrary number of arrays
#[macro_export]
macro_rules! eval {
[$($x:ident),+] => {
[$($x:expr),+] => {
{
let mut temp_vec = Vec::new();
$(
Expand Down

0 comments on commit 208758b

Please sign in to comment.