Deprecate C_DEBUG definition in favour of standard NDEBUG (#2783)

This commit is contained in:
pajlada 2021-05-20 14:21:41 +02:00 committed by GitHub
parent 2db50f1c41
commit ddba279ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ namespace {
// true. // true.
void initSignalHandler() void initSignalHandler()
{ {
#ifndef C_DEBUG #ifdef NDEBUG
signalsInitTime = std::chrono::steady_clock::now(); signalsInitTime = std::chrono::steady_clock::now();
signal(SIGSEGV, handleSignal); signal(SIGSEGV, handleSignal);

View file

@ -25,7 +25,7 @@
#include "widgets/splits/Split.hpp" #include "widgets/splits/Split.hpp"
#include "widgets/splits/SplitContainer.hpp" #include "widgets/splits/SplitContainer.hpp"
#ifdef C_DEBUG #ifndef NDEBUG
# include <rapidjson/document.h> # include <rapidjson/document.h>
# include "providers/twitch/PubsubClient.hpp" # include "providers/twitch/PubsubClient.hpp"
# include "util/SampleCheerMessages.hpp" # include "util/SampleCheerMessages.hpp"
@ -178,7 +178,7 @@ void Window::addCustomTitlebarButtons()
void Window::addDebugStuff() void Window::addDebugStuff()
{ {
#ifdef C_DEBUG #ifndef NDEBUG
std::vector<QString> cheerMessages, subMessages, miscMessages, linkMessages, std::vector<QString> cheerMessages, subMessages, miscMessages, linkMessages,
emoteTestMessages; emoteTestMessages;