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-08-22 17:20:16 +10:00
2019-11-01 12:41:37 +11:00
2019-10-18 12:20:32 +11:00
2019-12-23 00:07:03 +11:00
2019-12-20 12:59:13 +11:00
2019-11-11 11:37:38 +11:00
2019-05-20 15:04:29 +10:00
2019-05-20 15:04:29 +10:00
2020-02-13 11:52:40 +11:00
2019-07-01 22:53:00 +10:00
2019-04-26 14:47:31 +10:00
2019-07-01 17:10:12 +10:00
2019-12-04 23:23:07 +11:00
2019-10-08 14:40:35 +11:00
2019-12-27 22:54:53 +11:00
2019-12-27 23:57:46 +11:00
2020-02-13 11:03:37 +11:00
2019-12-12 20:15:28 +11:00
2019-10-31 13:37:51 +11:00
2019-08-20 15:21:09 +10:00
2019-11-05 11:35:45 +11:00
2019-12-12 20:15:28 +11:00
2020-01-09 11:25:26 +11:00
2020-02-13 11:03:37 +11:00
2019-12-12 20:15:28 +11:00
2019-05-17 18:04:15 +10:00
2019-12-27 22:51:17 +11:00
2019-12-27 22:51:17 +11:00
2019-11-05 11:35:45 +11:00
2019-07-03 12:47:13 +10:00
2020-02-13 11:03:37 +11:00
2019-12-27 22:54:53 +11:00
2019-12-27 22:51:17 +11:00
2019-06-03 16:47:35 +10:00
2019-07-01 17:10:12 +10:00
2019-10-29 14:17:29 +11:00
2019-10-29 14:17:29 +11:00
2019-12-27 22:51:17 +11:00
2019-10-29 14:17:29 +11:00
2019-10-29 12:12:37 +11:00
2019-11-26 00:08:57 +11:00
2019-10-29 14:17:29 +11:00
2019-10-29 14:17:29 +11:00
2019-11-26 00:07:42 +11:00
2020-01-26 23:26:14 +11:00
2020-01-26 23:26:14 +11:00
2019-12-27 22:54:20 +11:00
2019-10-29 14:17:29 +11:00