Skip to content

Instantly share code, notes, and snippets.

@larsbergstrom
Created January 22, 2014 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsbergstrom/8552351 to your computer and use it in GitHub Desktop.
Save larsbergstrom/8552351 to your computer and use it in GitHub Desktop.
more debugging code
let ptr: (*CrateMap) = sym as *CrateMap;
if ptr.is_null() {
println!("Failed2 to load crate map");
return None;
} else {
println!("Loaded crate map.");
unsafe {
return Some(transmute(sym));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment