ignore eglplatform doc examples

This commit is contained in:
Christian Meissl 2021-05-15 23:34:50 +02:00
parent af66a9c152
commit 8dc94e0817
1 changed files with 9 additions and 4 deletions

View File

@ -29,9 +29,12 @@ use gbm::{AsRaw, Device as GbmDevice};
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// use smithay::backend::egl::{ffi, native::EGLPlatform};
/// use smithay::egl_platform;
///
/// // see: https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_platform_gbm.txt /// // see: https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_platform_gbm.txt
/// egl_platform!(PLATFORM_GBM_KHR, self.as_raw(), &["EGL_KHR_platform_gbm"]) /// egl_platform!(PLATFORM_GBM_KHR, native_display, &["EGL_KHR_platform_gbm"]);
/// ``` /// ```
#[macro_export] #[macro_export]
macro_rules! egl_platform { macro_rules! egl_platform {
@ -82,8 +85,10 @@ impl<'a> EGLPlatform<'a> {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// EGLPlatform::new(ffi::egl::PLATFORM_GBM_KHR, display as *mut _, vec![ffi::egl::NONE as ffi::EGLint], &["EGL_KHR_platform_gbm"]) /// use smithay::backend::egl::{ffi, native::EGLPlatform};
///
/// EGLPlatform::new(ffi::egl::PLATFORM_GBM_KHR, "PLATFORM_GBM_KHR", native_display as *mut _, vec![ffi::egl::NONE as ffi::EGLint], &["EGL_KHR_platform_gbm"]);
/// ``` /// ```
pub fn new( pub fn new(
platform: ffi::egl::types::EGLenum, platform: ffi::egl::types::EGLenum,