Descent3/lib/mono.h

88 lines
2.8 KiB
C
Raw Normal View History

/*
* Descent 3
* Copyright (C) 2024 Parallax Software
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2024-04-16 03:43:29 +00:00
/*
* $Source: f:/miner/source/bios/rcs/mono.h $
* $Revision: 9 $
* $Author: Kevin $
* $Date: 7/28/99 3:16p $
*
* Header for monochrome/mprintf functions
*
* $Log: /DescentIII/Main/lib/mono.h $
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 9 7/28/99 3:16p Kevin
* Mac Stuff
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 8 1/26/99 9:44p Jeff
* moved tcplog functions to mono library
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 7 1/09/99 4:39p Jeff
* added some ifdefs and fixes to get files to compile under Linux
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 6 10/18/98 8:54p Matt
* Fixed macro which used an if statement not inside of a do..while block
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 5 10/13/98 12:03p Kevin
* Changed use of preprocessors for debug, etc.
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 4 10/09/98 12:52p Samir
* mono define also defines mprintf.
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 3 4/22/98 3:50p Chris
* Added DebugBlockPrint
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 2 9/16/97 5:06p Matt
* Disable mprintf() & mprintf_at() when _DEBUG not set
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 1 6/23/97 9:25p Samir
* added because source safe sucks
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 3 6/11/97 1:11p Samir
* Implemented new Debug system
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 2 3/10/97 12:29p Samir
* Moved mono code and altered lowlevel console interface to machine
* library.
*
*/
#ifndef _MONO_H
#define _MONO_H
#include "debug.h"
2024-04-16 18:56:40 +00:00
void nw_InitTCPLogging(char *ip, unsigned short port);
void nw_TCPPrintf(int n, char *format, ...);
2024-04-16 03:43:29 +00:00
#if (!defined(RELEASE)) && defined(MONO)
2024-04-16 18:56:40 +00:00
extern bool Debug_print_block;
// Prints a formatted string to the debug window
#define mprintf(args) Debug_ConsolePrintf args
// Prints a formatted string on window n at row, col.
#define mprintf_at(args) Debug_ConsolePrintf args
#define DebugBlockPrint(args) \
do { \
if (Debug_print_block) \
mprintf_at((1, 5, 51, args)); \
} while (0)
#else // ifdef _DEBUG
2024-04-16 03:43:29 +00:00
#ifndef MACINTOSH
2024-04-16 18:56:40 +00:00
#define mprintf(args) // DAJ defined in target headers
2024-04-16 03:43:29 +00:00
#endif
2024-04-16 18:56:40 +00:00
#define mprintf_at(args)
#define DebugBlockPrint(args)
#endif // ifdef _DEBUG
2024-04-16 03:43:29 +00:00
#endif