mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 18:55:31 +00:00
generator: auto escape string constants
This commit is contained in:
parent
8b101d5525
commit
e031a4ff18
|
@ -58,7 +58,13 @@ namespace GtkSharp.Generation
|
|||
{
|
||||
StreamWriter sw = gen_info.Writer;
|
||||
|
||||
sw.WriteLine ("{0}public const {1} {2} = {3}{4}{3};", indent, ConstType, Name, IsString ? "\"": String.Empty, value);
|
||||
sw.WriteLine ("{0}public const {1} {2} = {3}{4}{5};",
|
||||
indent,
|
||||
ConstType,
|
||||
Name,
|
||||
IsString ? "@\"": String.Empty,
|
||||
value,
|
||||
IsString ? "\"": String.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue