aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-04-06 22:00:45 +0100
committerGravatar Sadie Powell2026-04-06 22:02:42 +0100
commit0c701a4ca052cbf3345aee7961d39f4fdce39b7d (patch)
tree4d5ab848688d7785818f27d2e0d7d0466931214c /src/modules.cpp
parentAllow the vendoring script to run build commands. (diff)
Define NDEBUG when not building in debug mode.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 34b8f0700..0f53fd7b5 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -588,7 +588,7 @@ void ModuleManager::AddServices(const Service::List& list)
void ModuleManager::AddService(Service::Provider& item)
{
-#ifdef INSPIRCD_DEBUG
+#ifndef NDEBUG
ServerInstance->Logs.Debug("SERVICE", "Adding {} {} ({}) provided by {}", item.service_type,
item.service_name, (void*)&item, item.GetSource());
#endif
@@ -599,7 +599,7 @@ void ModuleManager::AddService(Service::Provider& item)
void ModuleManager::DelService(Service::Provider& item)
{
-#ifdef INSPIRCD_DEBUG
+#ifndef NDEBUG
ServerInstance->Logs.Debug("SERVICE", "Deleting {} {} ({}) provided by {}", item.service_type,
item.service_name, (void*)&item, item.GetSource());
#endif
@@ -644,7 +644,7 @@ ModulePtr ModuleManager::Find(const std::string& name)
void ModuleManager::AddReferent(const std::string& stype, const std::string& sname, Service::Provider* service)
{
-#ifdef INSPIRCD_DEBUG
+#ifndef NDEBUG
ServerInstance->Logs.Debug("SERVICE", "Adding reference to {} as {} {}",
(void*)service, stype, sname);
#endif
@@ -659,7 +659,7 @@ void ModuleManager::DelReferent(Service::Provider* service)
Service::Provider* curr = i->second;
if (curr == service)
{
-#ifdef INSPIRCD_DEBUG
+#ifndef NDEBUG
ServerInstance->Logs.Debug("SERVICE", "Deleting reference to {} as {} {}",
(void*)service, curr->service_type, curr->service_name);
#endif