-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable console logging if MONO or LOGGER is defined #159
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Descent 3 | ||
* Descent 3 | ||
* Copyright (C) 2024 Parallax Software | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
|
@@ -66,12 +66,12 @@ | |
#include "debug.h" | ||
void nw_InitTCPLogging(char *ip, unsigned short port); | ||
void nw_TCPPrintf(int n, char *format, ...); | ||
#if (!defined(RELEASE)) && defined(MONO) | ||
#if (!defined(RELEASE)) && (defined(MONO) || defined(LOGGER)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need to keep both, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wanted to keep both so we could keep the MONO code for historical reasons if we add a logging library. But it's easy enough to resurrect MONO later. |
||
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 mprintf_at(args) Debug_ConsolePrintfAt args | ||
#define DebugBlockPrint(args) \ | ||
do { \ | ||
if (Debug_print_block) \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we want this definition conditionally, if the user specified the CMake Option LOGGER
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in latest commit