ldr: fix pre processor hell

This commit is contained in:
Lightos1
2026-07-26 21:52:24 +02:00
parent 8c54df039f
commit bfb2009dab
3 changed files with 7 additions and 8 deletions

View File

@@ -28,18 +28,17 @@
#include "customize.hpp"
#include "oc_log.hpp"
#if ((!defined(HOC_UART_LOG)) && (defined(AMS_BUILD_FOR_AUDITING) || defined(AMS_BUILD_FOR_DEBUGGING)))
#if (!HOC_UART_LOG) && (defined(AMS_BUILD_FOR_AUDITING) || defined(AMS_BUILD_FOR_DEBUGGING))
#define HOC_IRAM_LOG 1
#else
#define HOC_IRAM_LOG 0
#endif
#if defined(AMS_BUILD_FOR_AUDITING) || defined(AMS_BUILD_FOR_DEBUGGING)
#if defined(HOC_IRAM_LOG)
#define LOGGING(...) Log(__VA_ARGS__)
#else if defined(HOC_UART_LOG)
#elif HOC_UART_LOG
#define LOGGING(...) AMS_LOG(__VA_ARGS__)
#endif
#else
#define LOGGING(...) ((void)0)
#endif