summaryrefslogtreecommitdiffstatshomepage
path: root/py/persistentcode.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-10-04 18:07:32 +1100
committerDamien George <damien.p.george@gmail.com>2017-10-04 18:07:32 +1100
commit23faf88cab10a216eb24a30b4f33edd17183522c (patch)
tree3082a57ccf8edcc979f8913a068630934c4ded66 /py/persistentcode.c
parentdfa563c71fead671931e91b786cd649eed517f92 (diff)
downloadmicropython-23faf88cab10a216eb24a30b4f33edd17183522c.tar.gz
micropython-23faf88cab10a216eb24a30b4f33edd17183522c.zip
py/mpprint: Only check for null string printing when NDEBUG not defined.
Printing "(null)" when a NULL string pointer is passed to %s is a debugging feature and not a feature that's relied upon by the code. So it only needs to be compiled in when debugging (such as assert) is enabled, and saves roughy 30 bytes of code when disabled. This patch also fixes this NULL check to not do the check if the precision is specified as zero.
Diffstat (limited to 'py/persistentcode.c')
0 files changed, 0 insertions, 0 deletions