1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#pragma once
// =========================================================================
// Debugging Defines
// =========================================================================
#ifdef FULLDEBUG
// Bounds checking and asserts
#ifndef DEBUG
#define DEBUG
#endif
// Outputs many "hidden" details, defaults to wizard on.
#define DEBUG_DIAGNOSTICS
#define DEBUG_MONINDEX
// Scan for bad items before every input (may be slow)
//
// This function might slow things down quite a bit
// on slow machines because it's going to go through
// every item on the level and do string comparisons
// against the name. Still, it is nice to know the
// turn in which "bad" items appear.
#define DEBUG_ITEM_SCAN
#define DEBUG_MONS_SCAN
#define DEBUG_BONES
#endif
// on by default (and has been for ~10 years)
#define DEBUG_ITEM_SCAN
#ifdef _DEBUG // this is how MSVC signals a debug build
#ifndef DEBUG
#define DEBUG
#endif
#endif
#ifdef DEBUG
#ifdef __MWERKS__
#define MSIPL_DEBUG_MODE
#endif
#else
#if !defined(NDEBUG)
#define NDEBUG // used by <assert.h>
#endif
#endif
#ifdef DEBUG_DIAGNOSTICS
#define DEBUG_TESTS
#define DEBUG_MONSPEAK
#define DEBUG_STATISTICS
#endif
#ifdef DEBUG_MONSPEAK
// ensure dprf is available
#define DEBUG_DIAGNOSTICS
#endif
|