Created
January 22, 2014 02:10
-
-
Save larsbergstrom/8552351 to your computer and use it in GitHub Desktop.
more debugging code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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