X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=blobdiff_plain;f=src%2Fprint.h;h=6e1c4ba8d8c2950720b01924fca4e1e6ce0b1456;hp=73df046f9c0d7cf98f153939784e249bbe3c4ec8;hb=c02ac2539fe718add1da1103cd63c7fb191985bf;hpb=43f088652419e08b7426b2c689591b280c0f2330 diff --git a/src/print.h b/src/print.h index 73df046..6e1c4ba 100644 --- a/src/print.h +++ b/src/print.h @@ -11,21 +11,27 @@ #ifndef DEBUG #define DEBUG 0 #endif +#define uprintf(...) do { \ + ulc_fprintf(stdout, __VA_ARGS__); \ + } while (0) +#define ufprintf(_STREAM,...) do { \ + ulc_fprintf(_STREAM, __VA_ARGS__); \ + } while (0) #define do_warn(...) do { \ } while (0) #define wprintf(...) do { \ - ulc_fprintf(stderr, __VA_ARGS__); \ + ufprintf(stderr, __VA_ARGS__); \ do_warn(__VA_ARGS__); \ } while (0) #define do_error(...) do { \ } while (0) #define eprintf(...) do { \ - ulc_fprintf(stderr, __VA_ARGS__); \ + ufprintf(stderr, __VA_ARGS__); \ do_error(__VA_ARGS_); \ } while (0) #define bprintf(_BOOL,...) do { \ if (_BOOL) \ - ulc_fprintf(stdout, __VA_ARGS__); \ + ufprintf(stdout, __VA_ARGS__); \ } while (0) #define dprintf(...) do { \ bprintf(DEBUG, __VA_ARGS__); \