aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/util.h
blob: da347e383bd6895d7b31d867780bed58e5f1b5fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef UTIL_H
#define UTIL_H

#define UNUSED(a) ((void) (a))

#define warn(...) do { \
  SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__); \
} while (0)

#define die(...) do { \
  SDL_LogCritical(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__); \
  exit(EXIT_FAILURE); \
} while (0)

#endif /* UTIL_H */