sdl3_sys/metadata/generated/
assert.rs

1//! Metadata for items in the `crate::assert` module
2
3use super::*;
4
5pub const METADATA_SDL_AssertState: Group = Group {
6    module: "assert",
7    kind: GroupKind::Enum,
8    name: "SDL_AssertState",
9    short_name: "AssertState",
10    doc: Some(
11        "Possible outcomes from a triggered assertion.\n\nWhen an enabled assertion triggers, it may call the assertion handler\n(possibly one provided by the app via [`SDL_SetAssertionHandler`]), which will\nreturn one of these values, possibly after asking the user.\n\nThen SDL will respond based on this outcome (loop around to retry the\ncondition, try to break in a debugger, kill the program, or ignore the\nproblem).\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
12    ),
13    available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
14    values: &[
15        GroupValue {
16            name: "SDL_ASSERTION_RETRY",
17            short_name: "RETRY",
18            doc: Some("Retry the assert immediately.\n"),
19            available_since: None,
20        },
21        GroupValue {
22            name: "SDL_ASSERTION_BREAK",
23            short_name: "BREAK",
24            doc: Some("Make the debugger trigger a breakpoint.\n"),
25            available_since: None,
26        },
27        GroupValue {
28            name: "SDL_ASSERTION_ABORT",
29            short_name: "ABORT",
30            doc: Some("Terminate the program.\n"),
31            available_since: None,
32        },
33        GroupValue {
34            name: "SDL_ASSERTION_IGNORE",
35            short_name: "IGNORE",
36            doc: Some("Ignore the assert.\n"),
37            available_since: None,
38        },
39        GroupValue {
40            name: "SDL_ASSERTION_ALWAYS_IGNORE",
41            short_name: "ALWAYS_IGNORE",
42            doc: Some("Ignore the assert from now on.\n"),
43            available_since: None,
44        },
45    ],
46};