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
<pre><codeclass="language-swift">public final class SteamAPI: <ahref="steamworks/types/steambaseapi3.html?swift">SteamBaseAPI</a></code></pre>
4266
+
<pre><codeclass="language-swift">public final class SteamAPI: <ahref="steamworks/types/steambaseapi3.html?swift">SteamBaseAPI</a>, <ahref="https://developer.apple.com/documentation/swift/sendable?language=swift">Sendable</a></code></pre>
4267
4267
</div>
4268
4268
4269
4269
@@ -4285,7 +4285,7 @@ <h5>Declaration</h5>
4285
4285
</span>
4286
4286
4287
4287
4288
-
<spanclass="j2-item-nav-item"><ahref="https://github.com/johnfairh/swift-steamworks/blob/main/Sources/Steamworks/SteamAPI.swift#L24-L94">Show on GitHub</a></span>
4288
+
<spanclass="j2-item-nav-item"><ahref="https://github.com/johnfairh/swift-steamworks/blob/main/Sources/Steamworks/SteamAPI.swift#L24-L93">Show on GitHub</a></span>
<pre><codeclass="language-swift">public final class SteamGameServerAPI: <ahref="steamworks/types/steambaseapi3.html?swift">SteamBaseAPI</a></code></pre>
4334
+
<pre><codeclass="language-swift">public final class SteamGameServerAPI: <ahref="steamworks/types/steambaseapi3.html?swift">SteamBaseAPI</a>, <ahref="https://developer.apple.com/documentation/swift/sendable?language=swift">Sendable</a></code></pre>
<spanclass="j2-item-nav-item"><ahref="https://github.com/johnfairh/swift-steamworks/blob/main/Sources/SteamworksEncryptedAppTicket/SteamEncryptedAppTicket.swift#L31-L110">Show on GitHub</a></span>
4423
+
<spanclass="j2-item-nav-item"><ahref="https://github.com/johnfairh/swift-steamworks/blob/main/Sources/SteamworksEncryptedAppTicket/SteamEncryptedAppTicket.swift#L15-L114">Show on GitHub</a></span>
<li>Have to manually tell Swift to link with <code>libc++</code>. Verify by commenting from
4251
-
Makefile. When resolved tidy Makefile.</li>
4252
-
<li>Importing <code>Dispatch</code> and <code>-enable-cxx-interop</code> makes <code>DispatchSemaphore</code> disappear
4253
-
but not the rest of the module?? Work around. When resolved rewrite mutex.</li>
4333
+
<li><del>Have to manually tell Swift to link with <code>libc++</code>. Verify by commenting from
4334
+
Makefile. When resolved tidy Makefile.</del> currently fixed in 5.7</li>
4335
+
<li><del>Importing <code>Dispatch</code> and <code>-enable-cxx-interop</code> makes <code>DispatchSemaphore</code> disappear
4336
+
but not the rest of the module?? Work around. When resolved rewrite mutex.</del> currently
4337
+
fixed in 5.7</li>
4254
4338
<li>Some structures/classes aren’t imported – the common factor seems to be a <code>protected</code>
4255
4339
destructor. Verify by trying to use <code>SteamNetworkingMessage_t</code>.</li>
4256
-
<li>Something goes wrong storing pointers to base classes and they get nobbled by
4257
-
something. Verify by making <ahref="steamworks/types/steamipaddress.html?swift"><code>SteamIPAddress</code></a> a struct, changing interfaces to cache
4258
-
the interface pointers.</li>
4259
-
<li>C++ types with <code>operator ==</code> don’t have <ahref="https://developer.apple.com/documentation/swift/equatable?language=swift" class="j2-swift"><code>Equatable</code></a><ahref="https://developer.apple.com/documentation/swift/equatable?language=objc" class="j2-objc j2-secondary"><code>Equatable</code></a> generated. Verify with
<li>Importing <code>Foundation</code> and <code>-enable-cxx-interop</code> and a C++ module goes wrong. Swift
4340
+
<li>Something goes wrong storing pointers to classes and they get nobbled by something.
4341
+
Verify by making <ahref="steamworks/types/steamipaddress.html?swift"><code>SteamIPAddress</code></a> a struct, changing interfaces to cache the interface
4342
+
pointers.</li>
4343
+
<li>Some C++ types with <code>operator ==</code> don’t have <ahref="https://developer.apple.com/documentation/swift/equatable?language=swift" class="j2-swift"><code>Equatable</code></a><ahref="https://developer.apple.com/documentation/swift/equatable?language=objc" class="j2-objc j2-secondary"><code>Equatable</code></a> generated. Verify with
4344
+
<ahref="steamworks/types/steamnetworkingipaddr.html?swift"><code>SteamNetworkingIPAddr</code></a>. Got worse in 5.7</li>
4345
+
<li><del>Importing <code>Foundation</code> and <code>-enable-cxx-interop</code> and a C++ module goes wrong. Swift
4262
4346
5.6 doesn’t crash; worse the compiler goes slow, spits out warnings, then the binary
4263
-
runs like treacle. Will aim to not depend on Foundation, see how that goes.</li>
4264
-
<li>Calls to (?pure) virtual functions aren’t generated properly: Swift generates a ref
4347
+
runs like treacle. Will aim to not depend on Foundation, see how that goes.</del> seems
4348
+
fixed in 5.7 but build is really slow - keep up not using Foundation?</li>
4349
+
<li>Calls to virtual functions aren’t generated properly: Swift generates a ref
4265
4350
to a symbol instead of doing the vtable call. So the actual C++ interfaces are not
4266
4351
usable in practice. Will use the flat API.</li>
4267
4352
<li>Anonymous enums are not imported at all. Affects callback etc. ID constants.
0 commit comments