From af6ee422a8dc5280a3aa7916c1742ecfdc9a57d7 Mon Sep 17 00:00:00 2001 From: sola.lu <sola.lu@greentest.com.cn> Date: 周三, 23 4月 2025 18:01:08 +0800 Subject: [PATCH] 1. 添加一些注释 --- examples/common/scpi-def.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/examples/common/scpi-def.h b/examples/common/scpi-def.h index 3b0acca..471c9a9 100644 --- a/examples/common/scpi-def.h +++ b/examples/common/scpi-def.h @@ -28,11 +28,16 @@ #ifndef __SCPI_DEF_H_ #define __SCPI_DEF_H_ +#ifdef __cplusplus +extern "C" { +#endif #include "scpi/scpi.h" #define SCPI_INPUT_BUFFER_LENGTH 256 #define SCPI_ERROR_QUEUE_SIZE 17 + + #define SCPI_IDN1 "MANUFACTURE" #define SCPI_IDN2 "INSTR2013" #define SCPI_IDN3 NULL @@ -53,5 +58,8 @@ scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context); +#ifdef __cplusplus +} +#endif #endif /* __SCPI_DEF_H_ */ -- Gitblit v1.9.1