Libraryless. Click here for Pure Java version (10010L/55K).
1 | // Only call once - not idempotent |
2 | svoid addGlobalLastErrorsBufferToDefaultPCallPolicy() { |
3 | var oldPolicy = defaultPCallPolicy(); |
4 | defaultPCallPolicy_set(error -> { |
5 | oldPolicy?.handlePcallFail(error); |
6 | globalLastErrorsBuffer().add(error); |
7 | }); |
8 | } |
Began life as a copy of #1036293
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036410 |
Snippet name: | addGlobalLastErrorsBufferToDefaultPCallPolicy |
Eternal ID of this version: | #1036410/6 |
Text MD5: | b5efafa0b93d68a3b518fca7679daf98 |
Transpilation MD5: | 89989fb479f06c4acd537845245eb5a5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-11 13:54:55 |
Source code size: | 261 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 121 / 186 |
Version history: | 5 change(s) |
Referenced in: | [show references] |