/* * 模块名称:主机侧单测桩 - dbg_log.h(iec104_serv 模块专用) * 模块功能:DBG_* 计数;本模块的判死/丢连接都靠 ERROR 留痕("i104 drop: send fail" * 与 "protocol fault" 是两条不同的现场线索)。 * ⚠ 仅供主机侧单测使用,不参与 MCU 构建。 * 创建日期:2026-10-23 */ #ifndef DBG_LOG_H #define DBG_LOG_H extern int g_i4_info_count; extern int g_i4_error_count; extern int g_i4_debug_count; #define DBG_INFO(fmt, ...) do { (void)(fmt); g_i4_info_count++; } while (0) #define DBG_DEBUG(fmt, ...) do { (void)(fmt); g_i4_debug_count++; } while (0) #define DBG_ERROR(fmt, ...) do { (void)(fmt); g_i4_error_count++; } while (0) #endif /* DBG_LOG_H */