Skip to content

Commit

Permalink
nuttx:move "#define STRINGIFY(x)" to nuttx/macro.h
Browse files Browse the repository at this point in the history
Franklin requirement, "#define STRINGIFY(x)" conflicts with https://github.com/mborgerding/kissfft define

Signed-off-by: chenzhijia <[email protected]>
Signed-off-by: lipengfei28 <[email protected]>
  • Loading branch information
Cccccczj authored and xiaoxiang781216 committed Oct 12, 2024
1 parent 08829bd commit 505adfa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arch/arm64/include/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
# include <stddef.h>
# include <nuttx/nuttx.h>
# include <nuttx/macro.h>
#endif

/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/src/common/xtensa_saveusercontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <nuttx/config.h>
#include <nuttx/irq.h>
#include <nuttx/nuttx.h>
#include <nuttx/macro.h>

#include <string.h>

Expand Down
5 changes: 5 additions & 0 deletions include/nuttx/macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 0 additions & 5 deletions include/nuttx/nuttx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion sched/init/nx_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 505adfa

Please sign in to comment.