Cached API tables and cut allocations in the PlayDate bindings target.
This commit is contained in:
@@ -9,7 +9,7 @@ internal import CPlaydate
|
||||
public enum System {}
|
||||
|
||||
extension System {
|
||||
private static var api: UnsafePointer<playdate_sys> { Playdate.systemAPI }
|
||||
private static var api: UnsafePointer<playdate_sys> { Playdate.systemAPI.unsafelyUnwrapped }
|
||||
|
||||
// MARK: - Types
|
||||
|
||||
|
||||
Reference in New Issue
Block a user