Replaced the @_cdecl attribute with the @c attribute across the library to update to Swift 6.4.
This commit is contained in:
@@ -72,13 +72,13 @@ targets: [
|
||||
|
||||
## Getting started
|
||||
|
||||
A Playdate application or game has a single C entry point, `eventHandler`. Export it with `@_cdecl`, initialize the binding on the first event, and install an update callback:
|
||||
A Playdate application or game has a single C entry point, `eventHandler`. Export it with `@c`, initialize the binding on the first event, and install an update callback:
|
||||
|
||||
```swift
|
||||
import CPlaydate
|
||||
import PlaydateKit
|
||||
|
||||
@_cdecl("eventHandler")
|
||||
@c(eventHandler)
|
||||
func eventHandler(
|
||||
pointer: UnsafeMutableRawPointer,
|
||||
event: PDSystemEvent,
|
||||
|
||||
Reference in New Issue
Block a user