cgen: disable _STR_TMP

pull/5346/head
Alexander Medvednikov 2020-06-10 21:24:53 +00:00
parent e50706f25c
commit 684a443b08
1 changed files with 5 additions and 5 deletions

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) { fn (mut g Gen) string_inter_literal(node ast.StringInterLiteral) {
if g.pref.autofree { //if g.pref.autofree {
g.write('_STR_TMP("') //g.write('_STR_TMP("')
} else { //} else {
g.write('_STR("') g.write('_STR("')
} //}
// Build the string with % // Build the string with %
mut fieldwidths := []int{} mut fieldwidths := []int{}
mut specs := []byte{} mut specs := []byte{}