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

9
LINES

< > BotCompany Repo | #1025289 - rHardExit - exit VM if it's broken (e.g. missing classes)

JavaX fragment (include)

// Hopefully this is enough to make sure the code inside Runnable is loaded (in case our jar was removed from disk)
static Runnable rHardExit_runnable = r {
  pcall { print("Hard VM exit"); }
  System.exit(1);
};

static Runnable rHardExit() {
  ret rHardExit_runnable;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025289
Snippet name: rHardExit - exit VM if it's broken (e.g. missing classes)
Eternal ID of this version: #1025289/2
Text MD5: 900c37d3542dba6bf765cdd6921e6bac
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-18 21:21:25
Source code size: 279 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 96
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1025289 & http://1025289.tinybrain.de