You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I included <zephyr/logging/log.h> and noticed that it also included a large number of Zephyr's system header files.
Here's an example (and this is just a small part):
log.h also includes zephyr/sys/util.h, zephyr/toolchain.h, zephyr/types.h, and much more.
This causes a lot of conflicts between my macros and Zephyr's system macros (redefined error for GET_FIELD(...), MHZ, MAX(...) and other). It seems wrong to me that log.h has so many dependencies. I think they should be hidden in .c files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I included
<zephyr/logging/log.h>
and noticed that it also included a large number of Zephyr's system header files.Here's an example (and this is just a small part):

log.h
also includeszephyr/sys/util.h
,zephyr/toolchain.h
,zephyr/types.h
, and much more.This causes a lot of conflicts between my macros and Zephyr's system macros (redefined error for
GET_FIELD(...)
,MHZ
,MAX(...)
and other). It seems wrong to me thatlog.h
has so many dependencies. I think they should be hidden in.c
files.Is there a way to fix this?
Beta Was this translation helpful? Give feedback.
All reactions