marqdo

lib/plugin — native ABIok

stdlib/plugin.mq.md

文档

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. else
    > print text=plugin-bad
Functions
Variables
  • description text
    Load optional shared libraries (.dll / .so / .dylib)
  • markup text
    occlusion
  • n int
    0
  • names list · 0
    #value
    ∅
  • title text
    lib/plugin — native ABI
可执行知识(辅助)

运行与结果

plugin-ok
完整源码
---
markup: occlusion
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

Variable