From 1105ceec171cee2b17f17d16566e1316602620dd Mon Sep 17 00:00:00 2001 From: Miraculous Ladybugreport <3642643+PeyTy@users.noreply.github.com> Date: Sun, 26 May 2024 11:14:41 +0300 Subject: [PATCH] [C] UTF16 string initializer for arrays --- source/targets/genC.hexa | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/targets/genC.hexa b/source/targets/genC.hexa index 181bc3a..9422f89 100644 --- a/source/targets/genC.hexa +++ b/source/targets/genC.hexa @@ -1112,6 +1112,9 @@ class GenCxx { if generics[0] == project.typer.typeUInt8 { return stringifyType(valueType) + ' ' + name + '_' + arraySize + ' = "' + string + '"' } + if generics[0] == project.typer.typeUInt16 { + return stringifyType(valueType) + ' ' + name + '_' + arraySize + ' = L"' + string + '"' + } throw 'String initializer is incompatible' case null: // TODO check this in typer