Skip to content

Fix checking of TARGET_* symbols #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2014
Merged

Conversation

fatih-asici
Copy link
Contributor

No description provided.

@matthewelse
Copy link
Contributor

Is the change supposed to fix something that isn't working, or is it more just to make the code clearer?

@bogdanm
Copy link
Contributor

bogdanm commented Mar 9, 2014

To add to @matthewelse's question, the two forms are not equivalent. If you defined a symbol SYM as 0, #if SYM will evaluate to false, but #ifdef SYM will evaluate to true.

@fatih-asici
Copy link
Contributor Author

At first, I thought that this is an obvious error; but I have just learned that the effect of "-DFOO" and "#define FOO" is different :). So this change does not fix anything as the commit message says.

Still think, this should be merged for consistency.

@matthewelse
Copy link
Contributor

Yeah I guessed what @bogdanm said, I was just wondering what the point of the change was, but I think that consistency is a good reason 👍

@bogdanm
Copy link
Contributor

bogdanm commented Mar 10, 2014

@fatih-asici, before I merge this pull request, could you please sign the mbed contributor agreement at https://mbed.org/contributor_agreement/ ? It's a required step for everyone who contributes code to mbed. Thank you!

@fatih-asici
Copy link
Contributor Author

@bogdanm, I had already signed it. My mbed account name is fasici.

bogdanm added a commit that referenced this pull request Mar 10, 2014
Fix checking of TARGET_* symbols
@bogdanm bogdanm merged commit 882ceb8 into ARMmbed:master Mar 10, 2014
bridadan pushed a commit that referenced this pull request Jun 21, 2016
added support for features array to build tools
pan- pushed a commit to pan-/mbed that referenced this pull request May 29, 2020
ccli8 pushed a commit to ccli8/mbed-os that referenced this pull request Aug 13, 2024
…I_IOT2A (ARMmbed#204)

* Fix issues with new async SPI changes that broke compiling for B_U585I_IOT2A

* Few more incorrect nullptrs

* Fix style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants