aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-18 11:40:28 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-18 11:40:28 +0300
commit526dc7c4a3e0e391ef449ceb91cccef5fa8428ea (patch)
tree4000a691afbe6d876b42528767e4df6b32d0bda0
parentdfb70e993de78627734c29996446039c12cc0a30 (diff)
downloadastar-526dc7c4a3e0e391ef449ceb91cccef5fa8428ea.tar.xz
Fix error() and todo() macros
-rw-r--r--error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.h b/error.h
index 5923703..aea1f87 100644
--- a/error.h
+++ b/error.h
@@ -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_ */