关于 Day2
作者: luohuayouyisuiliushui创建于 2026年5月12日更新于 2026年5月12日
我在 leptjson.c 中添加了这段代码。我想知道它是否会起作用。#define LEPT_PARSE_LITERAL(c,str) do { EXPECT(c, (*str));
size_t i = 1;
while (str[i] != 0) {
if (*c->json != str[i]) {
return LEPT_PARSE_INVALID_VALUE;
}
c->json++; i++;
}
} while (0)
内容来源: miloyip/json-tutorial