]> granicus.if.org Git - nethack/commitdiff
follow-up for seffects.h
authornhmall <nhmall@nethack.org>
Sun, 26 Feb 2023 14:46:45 +0000 (09:46 -0500)
committernhmall <nhmall@nethack.org>
Sun, 26 Feb 2023 14:46:45 +0000 (09:46 -0500)
Make it emit nothing without one of the expected #defines.

include/seffects.h

index 04e4ab8c7f27a2fcda6c8fcf715932a320ff84b7..5994a15b1f4a4e657f7ff294d4d755c595bb9ee6 100644 (file)
@@ -2,6 +2,8 @@
 /* Copyright (c) Michael Allison, 2023                                */
 /* NetHack may be freely redistributed.  See license for details. */
 
+#if defined(SEFFECTS_ENUM) || defined(SEFFECTS_AUTOMAP)
+
 #if defined(SEFFECTS_ENUM)
 #define seffect(basename) se_##basename
 #else
     seffect(yelp),
     seffect(zap),
     seffect(zap_then_explosion),
-
 #undef seffect
+#endif   /* SEFFECTS_ENUM || SEFFECTS_AUTOMAP */
 
 /* seffects.h */