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

all: re-enable -prealloc

This commit is contained in:
Alexander Medvednikov
2020-07-11 11:25:53 +02:00
parent 2ea187fb85
commit a1073105e1
3 changed files with 54 additions and 30 deletions

View File

@@ -136,6 +136,7 @@ pub fn malloc(n int) byteptr {
panic('malloc(<=0)')
}
$if prealloc {
//println('p')
res := g_m2_ptr
unsafe {
g_m2_ptr += n