pull in the recent unconditionals merge from master
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/* NetHack 3.5 hack.h $Date$ $Revision$ */
|
||||
/* NetHack 3.5 hack.h $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$ */
|
||||
/* NetHack 3.5 hack.h $Date: 2009/05/06 10:44:46 $ $Revision: 1.49 $ */
|
||||
/* SCCS Id: @(#)hack.h 3.5 2008/03/19 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -10,9 +11,31 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* For debugging beta code. */
|
||||
#ifdef BETA
|
||||
#define Dpline pline
|
||||
#ifdef DEBUG
|
||||
/* due to strstr(), mon.c matches makemon.c */
|
||||
# define showdebug() (sysopt.debugfiles && \
|
||||
((sysopt.debugfiles[0] == '*') || \
|
||||
(strstr( __FILE__ , sysopt.debugfiles))))
|
||||
|
||||
/* GCC understands this syntax */
|
||||
# ifdef __GNUC__
|
||||
/* ... but whines about it anyway without these pragmas. */
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wvariadic-macros"
|
||||
# define debugpline(args...) \
|
||||
do { if (showdebug()) pline( args ); } while(0);
|
||||
# pragma GCC diagnostic pop
|
||||
# endif
|
||||
|
||||
/* and Visual Studio understands this one */
|
||||
# ifdef _MSC_VER
|
||||
# define debugpline(...) \
|
||||
do { if (showdebug()) pline(__VA_ARGS__); } while(0);
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define showdebug() (0)
|
||||
# define debugpline(...)
|
||||
#endif
|
||||
|
||||
#define TELL 1
|
||||
@@ -37,7 +60,6 @@
|
||||
#define BY_PAPER 2
|
||||
#define BY_OTHER 9
|
||||
|
||||
#ifdef STEED
|
||||
/* Macros for why you are no longer riding */
|
||||
#define DISMOUNT_GENERIC 0
|
||||
#define DISMOUNT_FELL 1
|
||||
@@ -46,7 +68,6 @@
|
||||
#define DISMOUNT_ENGULFED 4
|
||||
#define DISMOUNT_BONES 5
|
||||
#define DISMOUNT_BYCHOICE 6
|
||||
#endif
|
||||
|
||||
/* Special returns from mapglyph() */
|
||||
#define MG_CORPSE 0x01
|
||||
|
||||
Reference in New Issue
Block a user