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

wrap up -bare

This commit is contained in:
Alexander Medvednikov
2019-11-14 10:23:44 +03:00
parent 6eaa2db533
commit 34c4565f7c
7 changed files with 70 additions and 53 deletions

View File

@ -2137,7 +2137,7 @@ fn (p mut Parser) string_expr() {
Calling a C function sometimes requires a call to a string method
C.fun('ssss'.to_wide()) => fun(string_to_wide(tos3("ssss")))
*/
if (p.calling_c && p.peek() != .dot) || (p.pref.translated && p.mod == 'main') {
if (p.calling_c && p.peek() != .dot) || p.pref.is_bare || (p.pref.translated && p.mod == 'main') {
p.gen('"$f"')
}
else if p.is_sql {