From: Ron Nazarov Date: Wed, 4 Dec 2024 01:14:30 +0000 (+0000) Subject: Make debug_write a variadic macro (without --enable-debugfile) X-Git-Tag: v1.6.1-roc-dev~9 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=5db9ceece9d0fd1c435eaef99721e0fb0a0c1205;p=dgamelaunch Make debug_write a variadic macro (without --enable-debugfile) Fixes builds without --enable-debugfile failing due to too many arguments getting passed to debug_write. --- diff --git a/dgamelaunch.h b/dgamelaunch.h index d07dab3..ee871f9 100644 --- a/dgamelaunch.h +++ b/dgamelaunch.h @@ -325,7 +325,7 @@ extern struct dg_game **populate_games(int game, int *l, struct dg_user *me); #ifdef USE_DEBUGFILE extern void debug_write(char *str, ...); #else -#define debug_write(str) +#define debug_write(...) #endif extern struct dg_game **sort_games(struct dg_game **games, int len, dg_sortmode sortmode);