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

fix runtime module test

This commit is contained in:
Alexander Medvednikov
2019-10-11 14:16:02 +03:00
parent af46bf515f
commit 9193242a76
5 changed files with 25 additions and 12 deletions

View File

@ -1,13 +1 @@
// Copyright (c) 2019 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
module runtime
#include <sys/sysinfo.h>
fn C.get_nprocs() int
pub fn nr_cpus() int {
return C.get_nprocs()
}