Can I insert checkpoints in a function, including any function it calls?
This looks like it has to be supported by the compiler, right?
fn check(){
let useage = stacker.useage();
print("stack usage {}",useage);
}
#[check_point(check())]
fn A(){
B();
}
fn B(){
C();
}
fn C(){
}
fn main(){
/// The check function is called back every time a function call occurs
A();
/// will print stack usage 30, stack usage 90, stack usage 90
}