conditional function signature definitions #987
Unanswered
jmrubillon
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi. Out of curiosity, do you have Otherwise I find it surprising that the problem is when it IS NOT defined, rather than when it IS defined... that makes it sound like you have a header or C file somewhere that is getting linked in that DOES define |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a header file with the following function declaration:
The same compilation flag switch is used in the corresponding .c file.
When I run
ceedling
(version 1.0.0) on this file withDEBUG_ALLOC_MEMORY
not defined in the project.yml I get:But if I define
DEBUG_ALLOC_MEMORY
in my project.yml then the whole thing compiles just fine 🤔No conflicting declarations warnings, nothing but a successful test run.
How can that be? And more importantly, how can I resolve this?
Beta Was this translation helpful? Give feedback.
All reactions