X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=587f57e8b12b39581fa1c856d273e53e8d8c6982;hp=3fb3ab63671d3b066e00e0d9ebe9030e431ebc16;hb=ee3543c1c14ffc6cd14b6dbd07d76d4cb65e3bd6;hpb=d655a433e8434031ff5665b9306b9a52de26f6bd diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 3fb3ab636..587f57e8b 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -371,6 +371,12 @@ vector get_corner_position(entity box, float corner); // expand multiple arguments into one argument by stripping parenthesis #define XPD(...) __VA_ARGS__ +// Some common varargs functions. Lowercase as they match C. +#define printf(...) print(sprintf(__VA_ARGS__)) +#define dprintf(...) dprint(sprintf(__VA_ARGS__)) +#define fprintf(file, ...) fputs(file, sprintf(__VA_ARGS__)) +#define bprintf(...) bprint(sprintf(__VA_ARGS__)) + #ifndef MENUQC void backtrace(string msg); #endif