Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
20
third-party/vendor/psm/examples/info.rs
vendored
Normal file
20
third-party/vendor/psm/examples/info.rs
vendored
Normal file
|
|
@ -0,0 +1,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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue