Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * functions.cpp
- *
- */
- #include <SDL2/SDL_log.h>
- #include <SDL2/SDL_error.h>
- #include <iostream>
- #include "functions.h"
- void printError(const char* errorMessage){
- std::cout << errorMessage << " error: " << SDL_GetError() << std::endl;
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, errorMessage, " error: %s\n", SDL_GetError());
- }
Add Comment
Please, Sign In to add comment