nuttx:move "#define STRINGIFY(x)" to nuttx/macro.h

Franklin requirement, "#define STRINGIFY(x)" conflicts with https://github.com/mborgerding/kissfft define

Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
chenzhijia
2024-09-19 10:42:42 +08:00
committed by Xiang Xiao
parent 08829bd388
commit 505adfa277
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
# include <stddef.h>
# include <nuttx/nuttx.h>
# include <nuttx/macro.h>
#endif
/****************************************************************************
@@ -24,7 +24,7 @@
#include <nuttx/config.h>
#include <nuttx/irq.h>
#include <nuttx/nuttx.h>
#include <nuttx/macro.h>
#include <string.h>
+5
View File
@@ -136,5 +136,10 @@
#define FOREACH_ARG(action, ...) \
FOREACH_ARG_(action, GET_ARG_COUNT(__VA_ARGS__), ##__VA_ARGS__)
/* Stringify the arguments */
#define STRINGIFY_(x) #x
#define STRINGIFY(x) STRINGIFY_(x)
#endif /* __INCLUDE_NUTTX_MACRO_H */
-5
View File
@@ -78,9 +78,4 @@
#define container_of(ptr, type, member) \
((type *)((uintptr_t)(ptr) - offsetof(type, member)))
/* Stringify the arguments */
#define STRINGIFY_(x) #x
#define STRINGIFY(x) STRINGIFY_(x)
#endif /* __INCLUDE_NUTTX_NUTTX_H */
+1 -1
View File
@@ -36,7 +36,7 @@
#include <nuttx/board.h>
#include <nuttx/fs/fs.h>
#include <nuttx/init.h>
#include <nuttx/nuttx.h>
#include <nuttx/macro.h>
#include <nuttx/symtab.h>
#include <nuttx/trace.h>
#include <nuttx/wqueue.h>