I've seen macros like this: #define $Line #__LINE__
and I was wondering what the effect of the $ symbol has in a macro?
tomtetlaw -1
Posting Pro
Recommended Answers
Jump to PostI have no idea what a $ sign does in a macro, if it even does something at all. As far as I know, the $ sign is not a reserved character and is not used for anything in C/C++, so I would imagine that it is a valid character …
Jump to PostI found this on HP docs (confirmed by MSDN too):
Identifiers
Identifiers are case sensitive and start with a letter (ISO Latin-1 decimal values 65-90 and 97-122), a dollar sign ($), a tilde (~), a colon (:), or an underscore (_); any additional characters can be a letter, digit (0-9), …
All 5 Replies
mike_2000_17 2,669
21st Century Viking Team Colleague Featured Poster
tomtetlaw -1
Posting Pro
tomtetlaw -1
Posting Pro
mike_2000_17 2,669
21st Century Viking Team Colleague Featured Poster
tomtetlaw -1
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.