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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user