Created
October 25, 2014 18:06
-
-
Save GuillaumeGomez/8f78b43c19394e2213a6 to your computer and use it in GitHub Desktop.
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
macro_rules! impl_GObjectFunctions( | |
($gtk_struct:ident, $ffi_type:ident) => ( | |
pub fn get_pointer(&self) -> *mut ffi::$ffi_type { | |
self.pointer | |
} | |
pub fn wrap_pointer(pointer: *mut ffi::$ffi_type) -> $gtk_struct { | |
$gtk_struct { | |
pointer: pointer | |
} | |
} | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment