micropython/extmod
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
..
axtls-include
crypto-algorithms
lwip-include
nimble
re1.5
uzlib
webrepl
extmod.mk
machine_i2c.c
machine_i2c.h
machine_mem.c py: Add mp_raise_msg_varg helper and use it where appropriate. 2020-02-13 11:52:40 +11:00
machine_mem.h
machine_pinbase.c
machine_pinbase.h
machine_pulse.c
machine_pulse.h
machine_signal.c
machine_signal.h
machine_spi.c
machine_spi.h
misc.h
modbluetooth.c
modbluetooth.h
modbluetooth_nimble.c
modbluetooth_nimble.h
modbtree.c
modframebuf.c
modlwip.c
modonewire.c
modubinascii.c
modubinascii.h
moducryptolib.c
moductypes.c
moduhashlib.c
moduheapq.c
modujson.c
modurandom.c
modure.c
moduselect.c
modussl_axtls.c
modussl_mbedtls.c
modutimeq.c
moduwebsocket.c
moduwebsocket.h
moduzlib.c
modwebrepl.c
network_cyw43.c
network_cyw43.h
uos_dupterm.c
utime_mphal.c
utime_mphal.h
vfs.c
vfs.h
vfs_blockdev.c
vfs_fat.c
vfs_fat.h
vfs_fat_diskio.c
vfs_fat_file.c
vfs_lfs.c
vfs_lfs.h
vfs_lfsx.c
vfs_lfsx_file.c
vfs_posix.c
vfs_posix.h
vfs_posix_file.c
vfs_reader.c
virtpin.c
virtpin.h