Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 1035👍, 0💬
Popular Posts:
Which bit wise operator is suitable for turning on a particular bit in a number? The bitwise OR oper...
What will be printed as the result of the operation below: main() { char *ptr = " Cisco Systems"; *p...
How To Run a JUnit Test Class? A JUnit test class usually contains a number of test methods. You can...
How To Truncate an Array? - PHP Script Tips - PHP Built-in Functions for Arrays If you want to remov...
How could Java classes direct program messages to the system console, but error messages, say to a f...