Skip to content

Commit 19335a3

Browse files
committed
work around rustdoc bug rust-lang/rust#133150
1 parent 6480cb0 commit 19335a3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sdl3-sys-gen/src/emit.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ pub const fn is_valid_ident(s: &str) -> bool {
3030
}
3131

3232
pub fn skip_doc_link_sym(s: &str) -> bool {
33-
matches!(s, "SDL_image" | "SDL_MAIN_USE_CALLBACKS")
33+
matches!(s, "SDL_image" | "SDL_MAIN_USE_CALLBACKS") ||
34+
// FIXME: work around for rustdoc bug: https://github.com/rust-lang/rust/issues/133150
35+
matches!(s, "SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER" | "SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER")
3436
}
3537

3638
fn emit_extern_start(ctx: &mut EmitContext, abi: &Option<FnAbi>, for_fn_ptr: bool) -> EmitResult {

sdl3-sys/src/generated/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ extern "C" {
517517
/// - [`SDL_PROP_RENDERER_VSYNC_NUMBER`]: the current vsync setting
518518
/// - [`SDL_PROP_RENDERER_MAX_TEXTURE_SIZE_NUMBER`]: the maximum texture width
519519
/// and height
520-
/// - [`SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER`]: a (const [`SDL_PixelFormat`] *)
520+
/// - `SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER`: a (const [`SDL_PixelFormat`] *)
521521
/// array of pixel formats, terminated with [`SDL_PIXELFORMAT_UNKNOWN`],
522522
/// representing the available texture formats for this renderer.
523523
/// - [`SDL_PROP_RENDERER_OUTPUT_COLORSPACE_NUMBER`]: an [`SDL_ColorSpace`] value

sdl3-sys/src/generated/video.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ extern "C" {
16131613
///
16141614
/// These are additional supported properties on macOS:
16151615
///
1616-
/// - [`SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER`]: the
1616+
/// - `SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER`: the
16171617
/// `(__unsafe_unretained)` NSWindow associated with the window, if you want
16181618
/// to wrap an existing window.
16191619
/// - [`SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER`]: the `(__unsafe_unretained)`

0 commit comments

Comments
 (0)