We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b97e458 + 10daeac commit 2918f1aCopy full SHA for 2918f1a
proposals/0492-section-control.md
@@ -75,14 +75,13 @@ let myLinkerSetEntry: Int = Int.random(in: 0 ..< 10) // ❌ error
75
@section("__DATA,mysection")
76
var mutableVariable: Int = 42 // ✅
77
78
-// Some complex data types are allowed (static strings, functions)
79
-typealias PluginData = (version: Int, name: String, initializer: @convention(c) ()->())
+// Some complex data types are allowed (tuples, function references)
+typealias PluginData = (version: Int, identifier: UInt64, initializer: @convention(c) ()->())
80
81
@section("__DATA,plugins")
82
@used
83
let myPlugin: PluginData = (
84
version: 1,
85
- name: "MyPlugin",
86
initializer: { print("init") }
87
)
88
```
0 commit comments