aboutsummaryrefslogtreecommitdiff
path: root/py/nlr.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-02-26 11:58:42 +1100
committerDamien George <damien.p.george@gmail.com>2020-02-28 10:31:07 +1100
commit3f39d18c2b884d32f0443e2e8114ff9d7a14d718 (patch)
tree9c0ef34c65df237b1f41ff32f36ff400e1730af8 /py/nlr.h
parentb86075ef1fc8df19844b18b315ade3c084accd54 (diff)
all: Add *FORMAT-OFF* in various places.
This string is recognised by uncrustify, to disable formatting in the region marked by these comments. This is necessary in the qstrdef*.h files to prevent modification of the strings within the Q(...). In other places it is used to prevent excessive reformatting that would make the code less readable.
Diffstat (limited to 'py/nlr.h')
-rw-r--r--py/nlr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/nlr.h b/py/nlr.h
index 3be3eb58c..f9fbf56e5 100644
--- a/py/nlr.h
+++ b/py/nlr.h
@@ -42,6 +42,8 @@
#define MICROPY_NLR_NUM_REGS_XTENSA (10)
#define MICROPY_NLR_NUM_REGS_XTENSAWIN (17)
+// *FORMAT-OFF*
+
// If MICROPY_NLR_SETJMP is not enabled then auto-detect the machine arch
#if !MICROPY_NLR_SETJMP
// A lot of nlr-related things need different treatment on Windows
@@ -83,6 +85,8 @@
#endif
#endif
+// *FORMAT-ON*
+
#if MICROPY_NLR_SETJMP
#include <setjmp.h>
#endif