migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.07k stars 70 forks source link

@Callable macro #373

Open migueldeicaza opened 7 months ago

migueldeicaza commented 7 months ago

Currently, it does not support scenarios where the value might be nullable:

@Callable
func demo (foo: String, obj: Object?) {

The scenario above should call the makeAndUnwrap method, but do not attempt to dereference with a !