1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

support printing bool and char in theory

This commit is contained in:
EinBurgbauer 2021-12-30 17:00:49 +01:00
parent e8cfe1a0a9
commit 6c03b8c8c9
2 changed files with 12 additions and 0 deletions

View file

@ -1126,6 +1126,12 @@ namespace System.Reflection
(*(float*)&mValue).ToString(strBuffer);
case typeof(double):
(*(double*)&mValue).ToString(strBuffer);
case typeof (bool):
strBuffer.Append((*(bool*)&mValue) ? "true" : "false");
case typeof(char8), typeof(char16), typeof(char32):
strBuffer.Append('\'');
(*(char32*)&mValue).ToString(strBuffer);
strBuffer.Append('\'');
case typeof(uint64), typeof(uint):
(*(uint64*)&mValue).ToString(strBuffer);
default:

View file

@ -1126,6 +1126,12 @@ namespace System.Reflection
(*(float*)&mValue).ToString(strBuffer);
case typeof(double):
(*(double*)&mValue).ToString(strBuffer);
case typeof (bool):
strBuffer.Append((*(bool*)&mValue) ? "true" : "false");
case typeof(char8), typeof(char16), typeof(char32):
strBuffer.Append('\'');
(*(char32*)&mValue).ToString(strBuffer);
strBuffer.Append('\'');
case typeof(uint64), typeof(uint):
(*(uint64*)&mValue).ToString(strBuffer);
default: