Click here to Skip to main content
15,897,371 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralAnyone else see the super-blood lunar eclipse? Pin
Dominic Burford27-Sep-15 19:28
professionalDominic Burford27-Sep-15 19:28 
GeneralRe: Anyone else see the super-blood lunar eclipse? Pin
Jeremy Falcon28-Sep-15 4:06
professionalJeremy Falcon28-Sep-15 4:06 
GeneralRe: Anyone else see the super-blood lunar eclipse? Pin
racketeer28-Sep-15 4:37
racketeer28-Sep-15 4:37 
GeneralRe: Anyone else see the super-blood lunar eclipse? Pin
908236528-Sep-15 12:41
908236528-Sep-15 12:41 
GeneralIsn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
swampwiz27-Sep-15 17:31
swampwiz27-Sep-15 17:31 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! PinPopular
PIEBALDconsult27-Sep-15 17:33
mvePIEBALDconsult27-Sep-15 17:33 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
Bob Nadler27-Sep-15 18:52
Bob Nadler27-Sep-15 18:52 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
Nisamudheen27-Sep-15 19:23
Nisamudheen27-Sep-15 19:23 
In fact Macros are really powerful tool. It is one of the best way by which one can talk to the underlying compiler and by which the compiler can talk to you. Yes compiler can talk to you by the means of Predefined Macros.

If we look at the "Preprocessor Definitions" of Visual Studio editor of a C++ project, there are a lots of things configured which can be done otherwise using #define macros.

Following are some of the application areas of macros.

1. Platform based API declarations. Platform can be different Operating Systems, it can be 32 bit or 64 bit.

2. Generation of conditional code.

3. Switching between UNICODE and Multi-byte.

4. Prevention of multiple times inclusion of header files. Achieved using #ifndef,#define,#endif.

5. API generation when used in conjunction with template meta programming.
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
Member 1200083727-Sep-15 21:14
Member 1200083727-Sep-15 21:14 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
den2k8827-Sep-15 21:16
professionalden2k8827-Sep-15 21:16 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
CPallini27-Sep-15 21:50
mveCPallini27-Sep-15 21:50 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
harold aptroot27-Sep-15 22:38
harold aptroot27-Sep-15 22:38 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
Pete O'Hanlon27-Sep-15 22:43
mvePete O'Hanlon27-Sep-15 22:43 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
Daniel Pfeffer28-Sep-15 7:34
professionalDaniel Pfeffer28-Sep-15 7:34 
GeneralRe: Isn't the C/C++ macro considered to be poor style? It's being used at coder contests! Pin
Jeremy Falcon28-Sep-15 4:04
professionalJeremy Falcon28-Sep-15 4:04 
Generalglut of zombie tv and movie content reflects reality on the streets ? Pin
BillWoodruff27-Sep-15 17:28
professionalBillWoodruff27-Sep-15 17:28 
GeneralRe: glut of zombie tv and movie content reflects reality on the streets ? Pin
dan!sh 27-Sep-15 18:28
professional dan!sh 27-Sep-15 18:28 
GeneralRe: glut of zombie tv and movie content reflects reality on the streets ? Pin
Amarnath S27-Sep-15 18:31
professionalAmarnath S27-Sep-15 18:31 
GeneralRe: glut of zombie tv and movie content reflects reality on the streets ? Pin
Jörgen Andersson27-Sep-15 22:41
professionalJörgen Andersson27-Sep-15 22:41 
GeneralRe: glut of zombie tv and movie content reflects reality on the streets ? Pin
GuyThiebaut27-Sep-15 20:36
professionalGuyThiebaut27-Sep-15 20:36 
GeneralRe: glut of zombie tv and movie content reflects reality on the streets ? Pin
908236528-Sep-15 0:54
908236528-Sep-15 0:54 
GeneralRe: glut of zombie tv and movie content reflects reality on the streets ? Pin
GuyThiebaut28-Sep-15 2:36
professionalGuyThiebaut28-Sep-15 2:36 
GeneralResume advice - Part II Pin
Member 1200083727-Sep-15 16:01
Member 1200083727-Sep-15 16:01 
GeneralRe: Resume advice - Part II Pin
Brisingr Aerowing27-Sep-15 16:15
professionalBrisingr Aerowing27-Sep-15 16:15 
GeneralRe: Resume advice - Part II Pin
Member 1200083727-Sep-15 16:17
Member 1200083727-Sep-15 16:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   38 votes