-
Notifications
You must be signed in to change notification settings - Fork 8
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
#pragma message w/ #include result in error #27
Comments
Thanks! I appreciate you report this issue however I don't actively maintain this tool anymore. If you make a fix in a PR I could merge it. So how does this For information instead of |
Greetings Kind Regards I made the change below on line 267 of tokenize.cpp I do not know if it breaks anything. However upon using checkheaders it reported many files not needed which were in fact needed so perhaps I did break it or checkheaders is faulty. As for #pragma message I only know what is found here #pragma message - Best |
When I read the help text it sounds to me like msvc expects the parameter to be a message string. i.e.
does it compile your example code and it works as expected? |
Greetings Kind Regards
According to the example provided on the page link below apparently
concatenation occurs. I utilize the form below and compiles w/o error. -Best
#pragma message( "#include " __FILE__ )
https://learn.microsoft.com/en-us/cpp/preprocessor/message?view=msvc-170
…On Thu, Nov 3, 2022 at 5:19 PM Daniel Marjamäki ***@***.***> wrote:
When I read the help text it sounds to me like msvc expects the parameter
to be a message string. i.e.
#pragma message ("#include \"stdafx.h\"")
does it compile your example code and it works as expected?
—
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALSJS4CR3GABNSVJAXXUV7TWGQT65ANCNFSM6AAAAAARSUUMUE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Below is my "Signature" apologies for no apologies if offends
"I once put instant coffee into the microwave and went back in time." -
Steven Wright
"Shut up and calculate" - apparently N. David Mermin possibly Richard
Feynman
“I want to sing, I want to cry, I want to laugh. Everything together. And
jump and dance. The day has arrived — yippee!” - Desmond Tutu
“When the green flag drops the bullshit stops!”
"It is cheaper to save the world than it is to ruin it."
"I must have had lessons" - Reverend Jim Ignatowski / Christopher Lloyd
"Dripping water hollows out stone, not through force, but through
persistence." - Ovid, Roman poet
"... as likely as lightning striking a Leprechaun whilst riding a Unicorn."
"Don't worry, the planet will do just fine without us."
Personal Web Page <https://mypaltrythoughts.blogspot.com>
|
That looks like valid code: But I don't think this looks valid: Shouldn't it be: |
Greetings Kind Regards The statements below cause problems for checkheaders. In particular the code threw a
std::out_of_range
exception. It finds#include 'ed stdafx.h")
which of course it does not wish to. I utilize such#pragma message
s to aid in debugging. I am not certain but perhaps regex or awk would be better choices. Thank You Kindly#include "stdafx.h"
#pragma message (#include 'ed stdafx.h")
The text was updated successfully, but these errors were encountered: