Repository navigation
Commit d02c8e4
committed
feat(runtime): add nullability annotations to NativeScript.h
Without them every pointer in the embedder API imports into Swift as
implicitly unwrapped, which hides the contract the implementation
already has: BaseDir, the script string and the Config argument are
required (their UTF8String feeds a std::string), while ApplicationPath,
MetadataPtr and Arguments are optional with defaults (BaseDir/app, the
__TNSMetadata section, no inspector arguments). initWithConfig: never
returns nil.1 parent 686157b commit d02c8e4
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
7 | | - | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
| 32 | + | |
0 commit comments