mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00
Add a note on that objects are freed
This commit is contained in:
parent
76124eb4a5
commit
6e54088c9e
@ -35,6 +35,8 @@ try {
|
|||||||
|
|
||||||
// Of course, C SDL2 API is still perfectly valid
|
// Of course, C SDL2 API is still perfectly valid
|
||||||
SDL_Delay(2000);
|
SDL_Delay(2000);
|
||||||
|
|
||||||
|
// All SDL objects are released at this point or if an error occurs
|
||||||
} catch (SDL2pp::Exception& e) {
|
} catch (SDL2pp::Exception& e) {
|
||||||
// Exception stores SDL_GetError() result
|
// Exception stores SDL_GetError() result
|
||||||
std::cerr << "Exception: " << e.what() << std::endl;
|
std::cerr << "Exception: " << e.what() << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user