/* * 主机侧单测桩:dbg_log.h(IEC104 套件专用) * 模块功能:为运行参数段起纳入本 TU 的 cfg_file.c / adc_cal.c / run_par.c 提供 * 主机可编译的日志宏(映射为计数)。⚠ 仅供 test/host/iec104/ 使用, * 不参与 MCU 构建。模式同 test/host/adc_cal/stub/ 先例。 * 创建日期:2026-10-25(道D 运行参数段) */ #ifndef DBG_LOG_H #define DBG_LOG_H extern int g_dbgstub104_err_count; extern int g_dbgstub104_info_count; extern int g_dbgstub104_debug_count; #define DBG_INFO(fmt, ...) do { g_dbgstub104_info_count++; } while (0) #define DBG_DEBUG(fmt, ...) do { g_dbgstub104_debug_count++; } while (0) #define DBG_ERROR(fmt, ...) do { g_dbgstub104_err_count++; } while (0) #endif /* DBG_LOG_H */