Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
335 B
Markdown
21 lines
335 B
Markdown
---
|
|
title: plugin demo ABI
|
|
description: Loads demo cdylib; path from MARQDO_TEST_PLUGIN (set by gold harness).
|
|
> lib/plugin.mq.md
|
|
> lib/sys.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
*`p` = > sys.env_get name=MARQDO_TEST_PLUGIN *
|
|
|
|
> plugin.load path=`p`
|
|
|
|
*`sum` = > demo_add a=1 b=2 *
|
|
|
|
> print text=`sum`
|
|
|
|
*`echo` = > demo_echo text=ok *
|
|
|
|
> print text=`echo`
|