mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
runtime: add note for the availability of the free_memory/0 implementation (#23620)
This commit is contained in:
parent
78effd0c09
commit
b91bbad692
@ -15,6 +15,8 @@ pub fn total_memory() usize {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// free_memory returns free physical memory found on the system.
|
// free_memory returns free physical memory found on the system.
|
||||||
|
// Note: implementation available only on Darwin, FreeBSD, Linux, OpenBSD and
|
||||||
|
// Windows. Otherwise, returns 1.
|
||||||
pub fn free_memory() usize {
|
pub fn free_memory() usize {
|
||||||
return free_memory_impl()
|
return free_memory_impl()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user