- updated commandline too show usage when using wrong parameters

This commit is contained in:
Mark Vejvoda
2010-08-22 08:40:18 +00:00
parent bf5f6b7f33
commit b3a60f5b69
2 changed files with 15 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
#include <SDL.h>
#include <iostream>
#define MAIN_FUNCTION(X) int main(int argc, char **argv) \
#define MAIN_FUNCTION(X) int main(int argc, const char **argv) \
{ \
if(SDL_Init(SDL_INIT_EVERYTHING) < 0) { \
std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n"; \