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

cgen: store return vals in tmp vars with -autofree

This commit is contained in:
Alexander Medvednikov
2020-07-01 14:34:14 +02:00
parent 92eea7f95a
commit 5eb76606ae
3 changed files with 48 additions and 29 deletions

View File

@ -103,6 +103,12 @@ pub fn mkdir(path string) ?bool {
if path == '.' {
return true
}
/*
mut k := 0
defer {
k = 1
}
*/
apath := os.real_path(path)
/*
$if linux {