diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-18 11:40:28 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-18 11:40:28 +0300 |
| commit | 526dc7c4a3e0e391ef449ceb91cccef5fa8428ea (patch) | |
| tree | 4000a691afbe6d876b42528767e4df6b32d0bda0 | |
| parent | dfb70e993de78627734c29996446039c12cc0a30 (diff) | |
| download | astar-526dc7c4a3e0e391ef449ceb91cccef5fa8428ea.tar.xz | |
Fix error() and todo() macros
| -rw-r--r-- | error.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ #include <stdlib.h> /* Clean up and exit, printing a message */ -#define error(...) { endwin(); printf("\033[?1003l\n"); printf(__FILE__ ": %i", __LINE__); printf(": " __VA_ARGS__); exit(EXIT_FAILURE); } -#define todo() { endwin(); printf("\033[?1003l\n"); printf(__FILE__": %i: Not yet implemented\n", __LINE__); exit(EXIT_FAILURE); } +#define error(...) { endwin(); printf("\033[?1003l"); fprintf(stderr, __FILE__ ": %i", __LINE__); fprintf(stderr, ": " __VA_ARGS__); exit(EXIT_FAILURE); } +#define todo() { endwin(); printf("\033[?1003l"); fprintf(stderr, __FILE__": %i: Not yet implemented\n", __LINE__); exit(EXIT_FAILURE); } #endif /* ERROR_H_ */ |
