| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-04-27 | py/stream: Remove mp_stream_errno and use system errno instead. | Damien George | |
| This change is made for two reasons: 1. A 3rd-party library (eg berkeley-db-1.xx, axtls) may use the system provided errno for certain errors, and yet MicroPython stream objects that it calls will be using the internal mp_stream_errno. So if the library returns an error it is not known whether the corresponding errno code is stored in the system errno or mp_stream_errno. Using the system errno in all cases (eg in the mp_stream_posix_XXX wrappers) fixes this ambiguity. 2. For systems that have threading the system-provided errno should always be used because the errno value is thread-local. For systems that do not have an errno, the new lib/embed/__errno.c file is provided. | |||
| 2020-04-05 | all: Use MP_ERROR_TEXT for all error messages. | Jim Mussared | |
| 2017-09-22 | lib/embed/abort_: Use mp_raise_msg helper function. | Damien George | |
| 2016-07-30 | lib/abort_.c: Add prototype to make coverage build happy. | Paul Sokolovsky | |
| 2016-07-30 | lib/embed/abort_: Implementation of abort_() function raising uPy exception. | Paul Sokolovsky | |
| Helpful when porting existing C libraries to MicroPython. abort()ing in embedded environment isn't a good idea, so when compiling such library, -Dabort=abort_ option can be given to redirect standard abort() to this "safe" version. | |||
