| 120 | } |
| 121 | |
| 122 | SDL_bool |
| 123 | SDL_GetStringBoolean(const char *value, SDL_bool default_value) |
| 124 | { |
| 125 | if (!value || !*value) { |
| 126 | return default_value; |
| 127 | } |
| 128 | if (*value == '0' || SDL_strcasecmp(value, "false") == 0) { |
| 129 | return SDL_FALSE; |
| 130 | } |
| 131 | return SDL_TRUE; |
| 132 | } |
| 133 | |
| 134 | SDL_bool |
| 135 | SDL_GetHintBoolean(const char *name, SDL_bool default_value) |
no test coverage detected