mirror of
https://github.com/m5stack/M5HAL.git
synced 2026-05-20 11:27:38 -07:00
Suppress clang-format partially
This commit is contained in:
+7
-3
@@ -11,9 +11,13 @@
|
||||
#include "./m5_hal/bus/bus.hpp"
|
||||
#include "./m5_hal/interface/gpio.hpp"
|
||||
|
||||
#define M5HAL_STATIC_MACRO_STRING(x) #x
|
||||
#define M5HAL_STATIC_MACRO_CONCAT(x, y) M5HAL_STATIC_MACRO_STRING(x / y)
|
||||
#define M5HAL_STATIC_MACRO_PATH_HEADER M5HAL_STATIC_MACRO_CONCAT(M5HAL_TARGET_PLATFORM_PATH, header.hpp)
|
||||
#define M5HAL_STATIC_MACRO_STRING(x) #x
|
||||
// Source
|
||||
// clang-format off
|
||||
#define M5HAL_STATIC_MACRO_CONCAT(x, y) M5HAL_STATIC_MACRO_STRING(x/y)
|
||||
// clang-format on
|
||||
|
||||
#define M5HAL_STATIC_MACRO_PATH_HEADER M5HAL_STATIC_MACRO_CONCAT(M5HAL_TARGET_PLATFORM_PATH, header.hpp)
|
||||
|
||||
#if M5HAL_TARGET_PLATFORM_NUMBER != 0
|
||||
#include M5HAL_STATIC_MACRO_PATH_HEADER
|
||||
|
||||
Reference in New Issue
Block a user