diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-12-29 01:46:08 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-12-29 01:46:08 +0100 |
| commit | 7902429e5d69bb6aa57c6f1411b163d3e037e0e1 (patch) | |
| tree | 4e09953714eacf615da8cacb65bdc34d26ed7262 /src/util.h | |
| parent | fb0a1cabe8d61d3305d9d14acc4754a1b6151b8c (diff) | |
| download | tmus-7902429e5d69bb6aa57c6f1411b163d3e037e0e1.tar.gz tmus-7902429e5d69bb6aa57c6f1411b163d3e037e0e1.zip | |
More refactoring, moved track manipulation into player
Planning on creating a modular player_backend component
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,12 +6,12 @@ #define MIN(a, b) ((a) > (b) ? (b) : (a)) #define ARRLEN(x) (sizeof(x)/sizeof((x)[0])) -#define PANIC(...) panic("" __VA_ARGS__, __FILE__, __LINE__) +#define PANIC(...) panic(__FILE__, __LINE__, "" __VA_ARGS__) #define ASSERT(x) assert((x), __FILE__, __LINE__, #x) int strnwidth(const char *s, int n); -void panic(const char *msg, const char *file, int line); +void panic(const char *file, int line, const char *msg, ...); void assert(int cond, const char *file, int line, const char *condstr); char *aprintf(const char *fmtstr, ...); |
