Guest User

Untitled

a guest
Feb 8th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. /*
  2.  * functions.cpp
  3.  *
  4.  */
  5.  
  6. #include <SDL2/SDL_log.h>
  7. #include <SDL2/SDL_error.h>
  8. #include <iostream>
  9.  
  10. #include "functions.h"
  11.  
  12. void printError(const char* errorMessage){
  13.     std::cout << errorMessage << " error: " << SDL_GetError() << std::endl;
  14.     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, errorMessage, " error: %s\n", SDL_GetError());
  15. }
Add Comment
Please, Sign In to add comment