Initial PROTEL 2026 toolchain import
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Swift function called from PROTEL via EXTERNAL / @_cdecl("swift_greet").
|
||||
import Foundation
|
||||
|
||||
@_cdecl("swift_greet")
|
||||
public func swift_greet(_ name: UnsafePointer<CChar>, _ value: Int32) {
|
||||
let label = String(cString: name)
|
||||
print("Swift: swift_greet(name=\(label), value=\(value))")
|
||||
}
|
||||
Reference in New Issue
Block a user