Skip to main content

SDL_main_func

Type Alias SDL_main_func 

Source
pub type SDL_main_func = Option<unsafe extern "C" fn(argc: c_int, argv: *mut *mut c_char) -> c_int>;
Expand description

The prototype for the application’s main() function

Parameter: argc an ANSI-C style main function’s argc. Parameter: argv an ANSI-C style main function’s argv. Returns: an ANSI-C main return code; generally 0 is considered successful program completion, and small non-zero values are considered errors.

Available Since: This datatype is available since SDL 3.2.0.

Aliased Type§

pub enum SDL_main_func {
    None,
    Some(unsafe extern "C" fn(i32, *mut *mut i8) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, *mut *mut i8) -> i32)

Some value of type T.