mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
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.
This commit is contained in:
4
py/nlr.h
4
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
|
||||
|
||||
Reference in New Issue
Block a user