Skip to content

Commit

Permalink
readded debug println
Browse files Browse the repository at this point in the history
  • Loading branch information
jam10o-new committed Oct 18, 2023
1 parent 74976f9 commit 7c79f7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/function_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use num_rational::Ratio;
use num_traits::{CheckedDiv, CheckedSub, ToPrimitive, Zero};
use std::cell::Cell;
use std::ops::{Add, Mul, Sub};
use debug_print::debug_println as dprintln;

macro_rules! fc {
($variant:ident $(, $( $child:tt ),* )? ) => {
Expand Down Expand Up @@ -651,7 +652,7 @@ pub fn exec_function_chain<S: SharedSpace + Clone>(
fc: Box<FunctionChain>,
) -> Vec<u8> {
let maybe_dim: Cell<Option<_dims::BytesPerDim>> = Cell::new(None);
let res = match *fc {
let res = match *fc.clone() {
//set maybe_dim if neccesary using if guard expression side-effects!
// intentionally unreachable.
//Two
Expand Down Expand Up @@ -2317,6 +2318,7 @@ pub fn exec_function_chain<S: SharedSpace + Clone>(
vec![0]
}
};
dprintln!("{:?}: {:?}", fc, res);
res
}

Expand Down

0 comments on commit 7c79f7f

Please sign in to comment.