You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/4.languages/1.python/3.export-functions.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@ icon: lucide:share-2
6
6
7
7
In the Plugify ecosystem, Python plugins can export functions to make them accessible to other plugins. This guide explains how to define and export functions in Python and provides examples to help you integrate your plugins seamlessly.
8
8
9
-
10
9
## **Basic Type Mapping**
11
10
12
11
The following table lists how types are exposed to the Python API:
@@ -58,7 +57,6 @@ The following table lists how types are exposed to the Python API:
58
57
| plg::vec4 | Vector4 | vec4 | ✅ |
59
58
| plg::mat4x4 | Matrix4x4 | mat4x4 | ✅ |
60
59
61
-
62
60
## **Exporting Functions in Python**
63
61
64
62
Exporting functions in Python is simpler than in C++ because Python is a dynamically-typed language. You only need to define the function and specify it in the plugin manifest. Plugify's Python Language Module handles the rest.
Copy file name to clipboardExpand all lines: content/4.languages/6.lua/3.export-functions.md
+51-1Lines changed: 51 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,57 @@ icon: lucide:share-2
5
5
---
6
6
7
7
In the Plugify ecosystem, Lua plugins can export functions to make them accessible to other plugins. This guide explains how to define and export functions in Lua and provides examples to help you integrate your plugins seamlessly.
8
-
8
+
9
+
## **Basic Type Mapping**
10
+
11
+
The following table lists how types are exposed to the Lua API:
12
+
13
+
| C++ Type | Lua Type | Plugify Alias | Ref Support ? |
Copy file name to clipboardExpand all lines: content/4.languages/7.dlang/3.export-functions.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,6 @@ The following table lists how types are exposed to the D API:
57
57
| plg::vec4 | Vector4 | vec4 | ✅ |
58
58
| plg::mat4x4 | Matrix4x4 | mat4x4 | ✅ |
59
59
60
-
61
60
## **Exporting Functions in D**
62
61
63
62
Exporting functions in D requires wrapping them with the `mixin Export` directive to create `extern(C)` functions compatible with Plugify. These functions can then be called by other plugins.
0 commit comments