mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
freestanding improvements (exit, function checks)
Fixed exit for freestanding (as assert now uses it). Running each function check now in a forked process so they can be killed or return other exit codes (and so each function runs, even if others crash)
This commit is contained in:

committed by
Alexander Medvednikov

parent
d73586743b
commit
751ba48bf5
@ -3,10 +3,11 @@ module builtin
|
||||
const (
|
||||
mem_prot = mm_prot(int(mm_prot.prot_read) | int(mm_prot.prot_write))
|
||||
mem_flags = map_flags(int(map_flags.map_private) | int(map_flags.map_anonymous))
|
||||
page_size = u64(linux_mem.page_size)
|
||||
)
|
||||
|
||||
pub fn mm_pages(size u64) u32 {
|
||||
pages := (u64(size+u64(4))+u64(linux_mem.page_size))/u64(linux_mem.page_size)
|
||||
pages := (size+u64(4)+page_size)/page_size
|
||||
return u32(pages)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user