sdl3_sys/generated/platform.rs
1//! SDL provides a means to identify the app's platform, both at compile time
2//! and runtime.
3
4unsafe extern "C" {
5 /// Get the name of the platform.
6 ///
7 /// Here are the names returned for some (but not all) supported platforms:
8 ///
9 /// - "Windows"
10 /// - "macOS"
11 /// - "Linux"
12 /// - "iOS"
13 /// - "Android"
14 ///
15 /// ## Return value
16 /// Returns the name of the platform. If the correct platform name is not
17 /// available, returns a string beginning with the text "Unknown".
18 ///
19 /// ## Thread safety
20 /// It is safe to call this function from any thread.
21 ///
22 /// ## Availability
23 /// This function is available since SDL 3.2.0.
24 pub fn SDL_GetPlatform() -> *const ::core::ffi::c_char;
25}
26
27#[cfg(doc)]
28use crate::everything::*;