SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL3pp_misc.h
1#ifndef SDL3PP_MISC_H_
2#define SDL3PP_MISC_H_
3
4#include <SDL3/SDL_misc.h>
5#include "SDL3pp_error.h"
6#include "SDL3pp_stdinc.h"
7
8namespace SDL {
9
46inline void OpenURL(StringParam url) { CheckError(SDL_OpenURL(url)); }
47
49
50} // namespace SDL
51
52#endif /* SDL3PP_MISC_H_ */
Helpers to use C++ strings parameters.
Definition SDL3pp_strings.h:43
constexpr void CheckError(bool result)
Check and throw if returned value from SDL is an error.
Definition SDL3pp_error.h:206
void OpenURL(StringParam url)
Open a URL/URI in the browser or other appropriate external application.
Definition SDL3pp_misc.h:46
the main namespace where all SDL3pp public functions and types live
Definition SDL3pp_assert.h:7