Skip to content

Commit 38a1b4a

Browse files
committed
syntax for Matlab < R2023a
1 parent 1625339 commit 38a1b4a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

+stdlib/cpu_arch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
function a = cpu_arch()
55

6-
if NET.isNETSupported()
6+
if NET.isNETSupported
77
a = System.Runtime.InteropServices.RuntimeInformation.OSArchitecture;
88
else
99
a = javaMethod("getProperty", "java.lang.System", "os.arch");

+stdlib/disk_available.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
f = uint64(0);
1414
if ~stdlib.exists(d), return, end
1515

16-
if NET.isNETSupported()
16+
if NET.isNETSupported
1717
f = System.IO.DriveInfo(stdlib.absolute(d)).AvailableFreeSpace();
1818
else
1919
f = javaFileObject(d).getUsableSpace();

+stdlib/disk_capacity.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
f = uint64(0);
1212
if ~stdlib.exists(d), return, end
1313

14-
if NET.isNETSupported()
14+
if NET.isNETSupported
1515
f = System.IO.DriveInfo(stdlib.absolute(d)).TotalSize();
1616
else
1717
f = javaFileObject(d).getTotalSpace();

+stdlib/filesystem_type.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
t = "";
1212
if ~stdlib.exists(p), return, end
1313

14-
if NET.isNETSupported()
14+
if NET.isNETSupported
1515
t = string(System.IO.DriveInfo(stdlib.absolute(p)).DriveFormat);
1616
else
1717
op = javaPathObject(p);

+stdlib/get_username.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%
44
function n = get_username()
55

6-
if NET.isNETSupported()
6+
if NET.isNETSupported
77
n = System.Environment.UserName;
88
else
99
n = javaMethod("getProperty", "java.lang.System", "user.name");

+stdlib/hostname.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
function n = hostname()
88

9-
if NET.isNETSupported()
9+
if NET.isNETSupported
1010
n = string(System.Environment.MachineName);
1111
elseif stdlib.isoctave()
1212
n = gethostname();

0 commit comments

Comments
 (0)