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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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_MEMORYnot defined in the project.yml I get:But if I define
DEBUG_ALLOC_MEMORYin 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