We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 437e7ec commit 19c5a6eCopy full SHA for 19c5a6e
lib/netapi/NetAPI.cc
@@ -9,7 +9,15 @@
9
#include <endianness.hh>
10
#include <token.h>
11
12
-using Debug = ConditionalDebug<false, "Network API">;
+constexpr bool DebugNetAPI =
13
+#ifdef DEBUG_NETAPI
14
+ DEBUG_NETAPI
15
+#else
16
+ false
17
+#endif
18
+ ;
19
+
20
+using Debug = ConditionalDebug<DebugNetAPI, "Network API">;
21
22
#include "../dns/dns.hh"
23
#include "../firewall/firewall.hh"
lib/netapi/xmake.lua
@@ -1,4 +1,7 @@
1
+debugOption("NetAPI")
2
3
compartment("NetAPI")
4
+ add_rules("cheriot.component-debug")
5
set_default(false)
6
add_includedirs("../../include")
7
add_deps("freestanding", "TCPIP")
0 commit comments