tree-wide: Unify formatting of __cplusplus ifdefs

This commit is contained in:
Paul Bartell 2023-04-20 12:46:00 -07:00 committed by Paul Bartell
parent 5f19e34f87
commit c1980cedb1
143 changed files with 958 additions and 395 deletions

View file

@ -30,9 +30,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */
#include "pico.h"
/*-----------------------------------------------------------
@ -147,8 +149,10 @@
#define portMEMORY_BARRIER() __asm volatile ( "" ::: "memory" )
#ifdef __cplusplus
}
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */
#endif /* PORTMACRO_H */

View file

@ -29,9 +29,11 @@
#ifndef RP2040_CONFIG_H
#define RP2040_CONFIG_H
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */
/* configUSE_DYNAMIC_EXCEPTION_HANDLERS == 1 means set the exception handlers dynamically on cores
* that need them in case the user has set up distinct vector table offsets per core
@ -63,8 +65,10 @@ extern "C" {
#endif
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
};
}
#endif
/* *INDENT-ON* */
#endif