Skip to content

Commit 737cbe5

Browse files
authored
Console.Write now produces output on all build flavours (#2782)
***NO_CI***
1 parent c4319df commit 737cbe5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//
22
// Copyright (c) .NET Foundation and Contributors
3-
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
43
// See LICENSE file in the project root for full license information.
54
//
65

@@ -11,15 +10,13 @@ HRESULT Library_corlib_native_System_Diagnostics_Debug::WriteLineNative___STATIC
1110
{
1211
NANOCLR_HEADER();
1312

14-
#ifdef BUILD_RTM
15-
stack.NotImplementedStub();
16-
#else
17-
1813
const char *szText0 = stack.Arg0().RecoverString();
1914
bool addLineFeed = (bool)stack.Arg1().NumericByRef().u1;
2015

2116
if (!szText0)
17+
{
2218
szText0 = "<null>";
19+
}
2320

2421
CLR_Debug::Emit(szText0, -1);
2522

@@ -28,7 +25,5 @@ HRESULT Library_corlib_native_System_Diagnostics_Debug::WriteLineNative___STATIC
2825
CLR_Debug::Emit("\r\n", -1);
2926
}
3027

31-
#endif
32-
3328
NANOCLR_NOCLEANUP_NOLABEL();
3429
}

0 commit comments

Comments
 (0)