mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
rename $if mac => $if macos , _mac.v => _darwin.v
This commit is contained in:
parent
760448afa4
commit
7882312697
@ -1278,7 +1278,7 @@ $if windows {
|
|||||||
$if linux {
|
$if linux {
|
||||||
println('Linux')
|
println('Linux')
|
||||||
}
|
}
|
||||||
$if mac {
|
$if macos {
|
||||||
println('macOS')
|
println('macOS')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
fn test_open() {
|
fn test_open() {
|
||||||
/*
|
/*
|
||||||
$if mac {
|
$if macos {
|
||||||
f := os2.create('os2.test')
|
f := os2.create('os2.test')
|
||||||
f.writeln('hello world!')
|
f.writeln('hello world!')
|
||||||
f.close()
|
f.close()
|
||||||
|
@ -4,7 +4,7 @@ fn nr_cpus_nix() int {
|
|||||||
$if linux {
|
$if linux {
|
||||||
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
|
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
|
||||||
}
|
}
|
||||||
$if mac {
|
$if macos {
|
||||||
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
|
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
|
||||||
}
|
}
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user