refactored code from debug_program to debug

This commit is contained in:
Matthew Liu
2023-08-04 12:53:14 -07:00
parent 2ac8e3685e
commit ee8d9ce5e7
2 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ use sunscreen::{
};
fn main() {
#[debug_program]
#[debug]
fn do_mad<T, U, V>(a: T, b: U, c: V) -> T
where
T: Mul<U, Output = T> + Add<V, Output = T>,
@@ -18,7 +18,7 @@ fn main() {
a * b + c
}
#[debug_program]
#[debug]
fn cube<T>(a: T) -> T
where
T: Mul<T, Output = T> + Copy,
@@ -26,7 +26,7 @@ fn main() {
a * a * a
}
#[debug_program]
#[debug]
fn square<T>(a: T) -> T
where
T: Mul<T, Output = T> + Copy,
@@ -34,7 +34,7 @@ fn main() {
simple_multiply(a, a)
}
#[debug_program]
#[debug]
fn simple_multiply<T>(a: T, b: T) -> T
where
T: Mul<T, Output = T> + Copy,

View File

@@ -489,7 +489,7 @@ where
#[cfg(feature = "debugger")]
/**
*
* Pushes a group onto the program context.
*/
pub fn push_group(&mut self, name: String, source: String) {
let parent = *self.group_stack.last().unwrap_or(&0);