objc/test/sysinfo.m · 1038 字节 · 下载原文
// sysinfo.m —— 全能接口 CALLJSON(#573) 自检:调用 sysinfo 并把返回的 JSON 整份打出来。
// sysinfo.m — self-check for the all-purpose interface CALLJSON(#573): call sysinfo and print the whole returned JSON.
//
// ⚠ 旧注释写「**不 `#include <vml_ui.h>`**,ObjC 前端解析不了那个头文件」——
// ⚠ The old note said "**no `#include <vml_ui.h>`**, the ObjC frontend cannot parse that header" —
// 那是 **v0.96.263 修之前**的事实(头里两个形参叫 `id`),已改名 `timerId` / `gradId`;
// that was true **before v0.96.263** (two parameters named `id`), now renamed to `timerId` / `gradId`;
// 2026-10-01 实测 `#import <vml_ui.h>`(`#include` 等价)**真加载**了那份头 —— 见下面那一行。
// measured 2026-10-01: `#import <vml_ui.h>` (`#include` is equivalent) **really loads** that header — see the line below.
#import <vml_ui.h>
int main() {
ui_call_json_s("sysinfo", "");
ui_call_json_print();
return 0;
}