Debian Codegraph @

ddebug/mono.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Source: f:/miner/source/bios/rcs/mono.h $
21 * $Revision: 9 $
22 * $Author: Kevin $
23 * $Date: 7/28/99 3:16p $
24 *
25 * Header for monochrome/mprintf functions
26 *
27 * $Log: /DescentIII/Main/lib/mono.h $
28 *
29 * 9 7/28/99 3:16p Kevin
30 * Mac Stuff
31 *
32 * 8 1/26/99 9:44p Jeff
33 * moved tcplog functions to mono library
34 *
35 * 7 1/09/99 4:39p Jeff
36 * added some ifdefs and fixes to get files to compile under Linux
37 *
38 * 6 10/18/98 8:54p Matt
39 * Fixed macro which used an if statement not inside of a do..while block
40 *
41 * 5 10/13/98 12:03p Kevin
42 * Changed use of preprocessors for debug, etc.
43 *
44 * 4 10/09/98 12:52p Samir
45 * mono define also defines mprintf.
46 *
47 * 3 4/22/98 3:50p Chris
48 * Added DebugBlockPrint
49 *
50 * 2 9/16/97 5:06p Matt
51 * Disable mprintf() & mprintf_at() when _DEBUG not set
52 *
53 * 1 6/23/97 9:25p Samir
54 * added because source safe sucks
55 *
56 * 3 6/11/97 1:11p Samir
57 * Implemented new Debug system
58 *
59 * 2 3/10/97 12:29p Samir
60 * Moved mono code and altered lowlevel console interface to machine
61 * library.
62 *
63 */
64 #ifndef _MONO_H
65 #define _MONO_H
66 #include "debug.h"
67
68 #ifdef _DEBUG
69 #define MAX_MONO_LENGTH 2048
70 #else
71 #define MAX_MONO_LENGTH 256
72 #endif
73
74 #if (!defined(RELEASE)) && defined(LOGGER)
75 // Prints a formatted string to the debug window
76 #define mprintf(...) Debug_ConsolePrintf(__VA_ARGS__)
77 // Prints a formatted string on window n at row, col.
78 #define mprintf_at(...) Debug_ConsolePrintfAt(__VA_ARGS__)
79 #define DebugBlockPrint(...)
80 #else // ifdef _DEBUG
81 // DAJ defined in target headers
82 #define mprintf(...)
83 #define mprintf_at(...)
84 #define DebugBlockPrint(...)
85 #endif // ifdef _DEBUG
86 #endif