]> skyeroc.xyz Git - dgamelaunch/commitdiff
Make debug_write a variadic macro (without --enable-debugfile)
authorRon Nazarov <ron@noisytoot.org>
Wed, 4 Dec 2024 01:14:30 +0000 (01:14 +0000)
committerRon Nazarov <ron@noisytoot.org>
Wed, 4 Dec 2024 01:14:30 +0000 (01:14 +0000)
Fixes builds without --enable-debugfile failing due to too many
arguments getting passed to debug_write.

dgamelaunch.h

index d07dab30e786c8b5fece1ca57948bffcda41823d..ee871f98ed8cbcc5efff0d21de7707c411bb661d 100644 (file)
@@ -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);