Skip to content

Commit 60edfda

Browse files
Update src/AsyncTCPLogging.h
Co-authored-by: Copilot <[email protected]>
1 parent fcbf3a2 commit 60edfda

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/AsyncTCPLogging.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@
99
// async_tcp_log_e, async_tcp_log_w, async_tcp_log_i, async_tcp_log_d, async_tcp_log_v
1010
#include <AsyncTCPLoggingCustom.h>
1111

12+
// Build-time checks to ensure required macros are defined
13+
#ifndef async_tcp_log_e
14+
#error "AsyncTCPLoggingCustom.h must define async_tcp_log_e"
15+
#endif
16+
#ifndef async_tcp_log_w
17+
#error "AsyncTCPLoggingCustom.h must define async_tcp_log_w"
18+
#endif
19+
#ifndef async_tcp_log_i
20+
#error "AsyncTCPLoggingCustom.h must define async_tcp_log_i"
21+
#endif
22+
#ifndef async_tcp_log_d
23+
#error "AsyncTCPLoggingCustom.h must define async_tcp_log_d"
24+
#endif
25+
#ifndef async_tcp_log_v
26+
#error "AsyncTCPLoggingCustom.h must define async_tcp_log_v"
27+
#endif
1228
#else // CONFIG_ASYNC_TCP_LOG_CUSTOM
1329

1430
/**

0 commit comments

Comments
 (0)