1. [Phix] check_break // divide by zero error
- Posted by _tom (admin) Nov 11, 2017
- 1307 views
integer k = get_key() if check_break() then puts(1, "Shutting down...") --save_all_user_data() abort(1) end if
I can not run this.
_tom
2. Re: [Phix] check_break // divide by zero error
- Posted by petelomax Nov 11, 2017
- 1279 views
_tom said...
integer k = get_key() if check_break() then puts(1, "Shutting down...") --save_all_user_data() abort(1) end if
I can not run this.
Will be fixed in the next release. A complete rewrite of builtins/pbreak.e was needed (it was broken on Windows as well as Linux) and that needed a few more instructions being supported by the inline assembler.
I suppose that in the short term, you could just comment out the offending instructions (line 55-56) in the old version of that file, and live with allow_break()/check_break() not doing much?
Pete
EDIT: I've just realised that, in the way I have implemented it, allow_break(0) will not disable Ctrl-C handling on Linux - it that likely to be an issue?