Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1001491 // getOS

JavaX fragment (include)

1  
static S getOS() {
2  
  if (isAndroid()) ret "Android";
3  
  if (isMac()) ret "Mac OS";
4  
  if (isWindows()) ret "Windows";
5  
  ret "Linux"; // Everything else is Linux... Yeah it's generous :)
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001491
Snippet name: getOS
Eternal ID of this version: #1001491/1
Text MD5: bb48252d359b07f6fa33902e9221c06b
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-19 18:32:58
Source code size: 190 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 563 / 784
Referenced in: [show references]