Files
marqdo/public/stdlib/plugin.mq.md
T
cflmyandCursor 209dc4fc5d Fix public docs run errors and optional gate matrix binding.
Markdown list dashes were parsed as loops; quantum.gate name=H failed because plugin bind required matrix. Repair user-site pages and redeploy-ready sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 15:36:58 +08:00

510 B


title: lib/plugin — native ABI description: Load optional shared libraries (.dll / .so / .dylib)

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

print text=plugin-bad