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

unsafe keyword + make array.free() an unsafe method

This commit is contained in:
Alexander Medvednikov
2019-10-20 19:59:53 +03:00
parent f7c00b8180
commit 1b518c158b
6 changed files with 93 additions and 62 deletions

View File

@ -117,6 +117,7 @@ pub mut:
pub fn (v mut V) finalize_compilation(){
// TODO remove
if v.pref.autofree {
/*
println('started freeing v struct')
v.table.typesmap.free()
v.table.obf_ids.free()
@ -131,6 +132,7 @@ pub fn (v mut V) finalize_compilation(){
free(v.table)
//for p in parsers {}
println('done!')
*/
}
}