Damien George
ad7213d3c3
py: Add mp_raise_msg_varg helper and use it where appropriate.
This commit adds mp_raise_msg_varg(type, fmt, ...) as a helper for
nlr_raise(mp_obj_new_exception_msg_varg(type, fmt, ...)). It makes the
C-level API for raising exceptions more consistent, and reduces code size
on most ports:
bare-arm: +28 +0.042%
minimal x86: +100 +0.067%
unix x64: -56 -0.011%
unix nanbox: -300 -0.068%
stm32: -204 -0.054% PYBV10
cc3200: +0 +0.000%
esp8266: -64 -0.010% GENERIC
esp32: -104 -0.007% GENERIC
nrf: -136 -0.094% pca10040
samd: +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
2020-02-13 11:52:40 +11:00
..
2019-09-26 16:04:56 +10:00
2017-09-06 13:40:51 +10:00
2020-01-24 11:51:21 +11:00
2020-01-12 10:37:40 +11:00
2017-09-06 13:40:51 +10:00
2020-02-07 16:08:29 +11:00
2017-09-06 13:40:51 +10:00
2017-09-06 13:40:51 +10:00
2020-01-26 23:21:29 +11:00
2019-05-01 15:06:21 +10:00
2017-09-06 13:40:51 +10:00
2017-09-06 13:40:51 +10:00
2020-02-11 13:33:56 +11:00
2020-01-24 11:51:21 +11:00
2019-10-15 21:35:27 +11:00
2019-10-21 23:01:41 +11:00
2019-05-17 18:04:15 +10:00
2019-02-12 14:54:51 +11:00
2020-02-13 11:52:40 +11:00
2020-02-04 17:54:31 +11:00
2019-11-21 12:10:32 +11:00
2020-02-07 16:08:20 +11:00
2020-02-04 17:54:31 +11:00
2020-01-26 23:21:29 +11:00
2020-02-13 11:52:40 +11:00
2020-01-26 23:21:29 +11:00
2019-06-05 15:28:30 +10:00
2019-10-29 22:22:37 +11:00
2020-01-29 17:10:32 +11:00
2019-01-27 12:38:23 +11:00
2017-09-06 13:40:51 +10:00
2020-02-07 16:08:33 +11:00