MIRA
Macros
PParam.h File Reference

Preprocessor workaround to handle single parameters that contain a comma. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MIRA_PPARAM(...)   __VA_ARGS__
 Preprocessor workaround to handle single parameters that contain a comma. More...
 

Detailed Description

Preprocessor workaround to handle single parameters that contain a comma.

Author
Erik Einhorn
Date
2009/08/21

Macro Definition Documentation

◆ MIRA_PPARAM

#define MIRA_PPARAM (   ...)    __VA_ARGS__

Preprocessor workaround to handle single parameters that contain a comma.

Example:

#define MYMACRO(x) ... do something ...
MYMACRO(map<int,float>); // ERROR, the comma is treated as separator
MYMACRO(MIRA_PPARAM(map<int,float>)); // OK