blob: 46a619b68bda2b9e759079402a2425830af9ffea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
extern crate psm;
psm::psm_stack_information! {
yes {
fn main() {
println!("Stack is {:?} and is at {:p} currently",
psm::StackDirection::new(), psm::stack_pointer());
}
}
no {
fn main() {
eprintln!("Stack information not supported by this target");
}
}
}
#[test]
fn run_example() {
main();
}
|