Files
marqdo/public/stdlib/插件.mq.md
T
cflmyandCursor ecc92f473a Unify frontmatter imports as import bind:target and drop > imports.
`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 10:03:21 +08:00

517 B
Raw Blame History


title: lib/插件 — 原生 ABI description: 加载可选共享库(.dll / .so / .dylib) 导入 插件:lib/插件.mq.md

main

导入 lib/插件.mq.md。函数:加载(路径)、卸载()、列出()。加载后,插件注册的名称可像普通函数一样调用。C 契约见 include/marqdo_abi.h 与 doc/design/ext-abi.md。路径须落在程序沙箱内。

*names = > 插件.列出 *

*n = > 长度 值=names *

  1. n >= 0

打印 内容=插件就绪

打印 内容=插件异常