1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: disable _STR_TMP

This commit is contained in:
Alexander Medvednikov 2020-06-10 21:24:53 +00:00
parent e50706f25c
commit 684a443b08

View File

@ -2928,11 +2928,11 @@ fn (g Gen) sort_structs(typesa []table.TypeSymbol) []table.TypeSymbol {
}
fn (mut g Gen) string_inter_literal(node ast.StringInterLiteral) {
if g.pref.autofree {
g.write('_STR_TMP("')
} else {
g.write('_STR("')
}
//if g.pref.autofree {
//g.write('_STR_TMP("')
//} else {
g.write('_STR("')
//}
// Build the string with %
mut fieldwidths := []int{}
mut specs := []byte{}