This commit is contained in:
JiXieShi
2024-05-20 21:57:52 +08:00
parent 5a7dc31224
commit c7d208d1e1
2 changed files with 7 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ typedef enum { // 定义枚举类型Type_t包含不同数据类型
* @example range(c, 1, 10) → (size_t c = 1; c < 10; c++)
* @example range(n, 10, 32, 3) → (size_t n = 10; n < 32; n += 3)
**/
#define range(var, ...) _range(__VA_ARGS__)(var, __VA_ARGS__) // 定义范围循环,传入循环变量和参数
#define range(var, ...) for _range(__VA_ARGS__)(var, __VA_ARGS__) // 定义范围循环,传入循环变量和参数
/**
* @Name Mapping