Skip to content

Commit

Permalink
Merge branch '4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Oct 5, 2024
2 parents 5f114bb + c6a0cb6 commit eaa2ea4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Generator/Generator/BuiltinGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) a
p ("public init(_ callback: @escaping (borrowing Arguments) -> Variant)") {
p ("content = CallableWrapper.callableVariantContent(wrapping: callback)")
}


#if false
p ("/// Creates a Callable instance from a Swift function")
p ("/// - Parameter callback: the swift function that receives an array of Variant arguments, and returns an optional Variant")
p("""
Expand All @@ -705,6 +706,7 @@ func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) a
p ("public init (_ callback: @escaping ([Variant])->Variant?)") {
p ("content = CallableWrapper.callableVariantContent(wrapping: callback)")
}
#endif
}
if bc.hasDestructor {
p.staticVar (name: "destructor", type: "GDExtensionPtrDestructor") {
Expand Down

0 comments on commit eaa2ea4

Please sign in to comment.