@@ -789,7 +789,9 @@ public struct ConstantVPrintFMessage :
789789 @_semantics ( " oslog.message.init_interpolation " )
790790 @_semantics ( " constant_evaluable " )
791791 public init ( stringInterpolation: ConstantVPrintFInterpolation ) {
792- self . interpolation = stringInterpolation
792+ var s = stringInterpolation
793+ s. appendLiteral ( " \n " )
794+ self . interpolation = s
793795 }
794796
795797 @inlinable
@@ -802,6 +804,7 @@ public struct ConstantVPrintFMessage :
802804 interpolationCount: 0
803805 )
804806 s. appendLiteral ( value)
807+ s. appendLiteral ( " \n " )
805808 self . interpolation = s
806809 }
807810}
@@ -836,13 +839,18 @@ internal func constant_vprintf_backend(
836839 if let closure = argumentClosures. first {
837840 closure { newArg in
838841 args. append ( contentsOf: newArg)
839- print ( argumentClosures. count)
840842 constant_vprintf_backend_recurse (
841843 fmt: fmt,
842844 argumentClosures: argumentClosures. dropFirst ( ) ,
843845 args: & args
844846 )
845847 }
848+ } else {
849+ constant_vprintf_backend_recurse (
850+ fmt: fmt,
851+ argumentClosures: ArraySlice ( argumentClosures) ,
852+ args: & args
853+ )
846854 }
847855}
848856
@@ -851,10 +859,10 @@ internal func constant_vprintf_backend(
851859@_transparent
852860@_alwaysEmitIntoClient
853861@_optimize ( none)
854- public func constant_vprintf ( _ message: ConstantVPrintFMessage ) {
862+ public func print ( _ message: ConstantVPrintFMessage ) {
855863 let formatString = message. interpolation. formatString
856864 let argumentClosures = message. interpolation. arguments. argumentClosures
857- if Bool ( _builtinBooleanLiteral: Builtin . ifdef_PRINT_DISABLED ( ) ) { return }
865+ if Bool ( _builtinBooleanLiteral: Builtin . ifdef_SWIFT_STDLIB_PRINT_DISABLED ( ) ) { return }
858866 let formatStringPointer = _getGlobalStringTablePointer ( formatString)
859867 constant_vprintf_backend (
860868 fmt: formatStringPointer,
0 commit comments