Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Can I use an ifdef in a #define line ...
Can I use an #ifdef in a #define line, to define something two different ways, like this?
#define a b \
#ifdef whatever
c d
#else
e f g
#endif
✍: Guest
No. You can't ``run the preprocessor on itself,'' so to speak. What you can do is use one of two completely separate #define lines, depending on the #ifdef setting:
#ifdef whatever
#define a b c d
#else
#define a b e f g
#endif
2016-02-03, 1689👍, 0💬
Popular Posts:
What are database triggers? How are the triggers fired? Read this collection of questions and answer...
What does a well-written Object Oriented program look like? A well-written object oriented program e...
If XML does not have closing tag will it work? No, every tag in XML which is opened should have a cl...
How To Use mysqlbinlog to View Binary Logs? - MySQL FAQs - Server Daemon mysqld Administration If yo...
Can you explain in brief how the ASP.NET authentication process works? ASP.NET does not run by itsel...