Files
marqdo/public/stdlib/plugin.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

19 lines
522 B
Markdown

---
title: lib/plugin — native ABI
description: Load optional shared libraries (.dll / .so / .dylib)
import plugin:lib/plugin.mq.md
---
# main
Import lib/plugin.mq.md. Functions: load(path), unload(), list(). After load, registered plugin names are callable like other functions. C ABI: include/marqdo_abi.h — see doc/design/ext-abi.md. Path must stay under the program sandbox (cwd / fs root).
*`names` = > plugin.list *
*`n` = > len `names` *
1. `n` >= 0
> print text=plugin-ok
2. *
> print text=plugin-bad