/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad

« back to all changes in this revision

Viewing changes to game_utils.c

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-09 20:50:51 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140109205051-4j1veaw5fwux8591
created a generic error print function that should print nice looking
error messages, supports formating...
Not tested.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  self->h = h;
39
39
  return self;
40
40
}
 
41
 
 
42
void print_error (const char * str, ... ) {
 
43
  fprintf (stderr,
 
44
"============================================================================\n"
 
45
  );
 
46
  
 
47
  va_list args;
 
48
  va_start (args, format);
 
49
  vfprintf (stderr, str, args);
 
50
  va_end (args);
 
51
  
 
52
  fprintf (stderr,
 
53
"\n"
 
54
"============================================================================\n"
 
55
  );
 
56
}