svoid rangeCheck(int i, int n) { if (i < 0 || i >= n) fail("Range check fail: " + i + "/" + n); } svoid rangeCheck(long i, long n) { if (i < 0 || i >= n) fail("Range check fail: " + i + "/" + n); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029233 |
Snippet name: | rangeCheck |
Eternal ID of this version: | #1029233/2 |
Text MD5: | c05b9019e23d67d86895b6200c5f1a7f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-07 14:04:47 |
Source code size: | 208 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 257 / 295 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |